@pax2pay/client 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/Client/Transfers/index.ts +5 -15
  2. package/dist/Client/Transfers/index.d.ts +5 -12
  3. package/dist/Client/Transfers/index.js +4 -14
  4. package/dist/Client/Transfers/index.js.map +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/model/AccountDetailsTransferDestinationResponse.d.ts +7 -2
  9. package/dist/model/AccountDetailsTransferDestinationResponse.js +18 -14
  10. package/dist/model/AccountDetailsTransferDestinationResponse.js.map +1 -1
  11. package/dist/model/AddressInfo.d.ts +3 -1
  12. package/dist/model/AddressInfo.js +10 -9
  13. package/dist/model/AddressInfo.js.map +1 -1
  14. package/dist/model/BeneficiaryRequest.d.ts +2 -2
  15. package/dist/model/BeneficiaryRequest.js +2 -2
  16. package/dist/model/BeneficiaryRequest.js.map +1 -1
  17. package/dist/model/BeneficiaryResponse.d.ts +2 -2
  18. package/dist/model/BeneficiaryResponse.js +2 -2
  19. package/dist/model/BeneficiaryResponse.js.map +1 -1
  20. package/dist/model/TransferDestinationAddressType.d.ts +7 -0
  21. package/dist/model/TransferDestinationAddressType.js +8 -0
  22. package/dist/model/TransferDestinationAddressType.js.map +1 -0
  23. package/dist/model/TransferDestinationRequest.d.ts +23 -0
  24. package/dist/model/TransferDestinationRequest.js +25 -0
  25. package/dist/model/TransferDestinationRequest.js.map +1 -0
  26. package/dist/model/TransferRequest.d.ts +2 -2
  27. package/dist/model/TransferResponseV3.d.ts +2 -2
  28. package/dist/model/TransferResponseV3.js +2 -2
  29. package/dist/model/TransferResponseV3.js.map +1 -1
  30. package/dist/model/UpdateBeneficiaryRequest.d.ts +2 -2
  31. package/dist/model/index.d.ts +3 -4
  32. package/dist/model/index.js +3 -3
  33. package/dist/model/index.js.map +1 -1
  34. package/index.ts +4 -6
  35. package/model/AccountDetailsTransferDestinationResponse.ts +21 -18
  36. package/model/AddressInfo.ts +12 -10
  37. package/model/BeneficiaryRequest.ts +3 -3
  38. package/model/BeneficiaryResponse.ts +3 -3
  39. package/model/TransferDestinationAddressType.ts +10 -0
  40. package/model/TransferDestinationRequest.ts +41 -0
  41. package/model/TransferRequest.ts +2 -2
  42. package/model/TransferResponseV3.ts +3 -3
  43. package/model/UpdateBeneficiaryRequest.ts +2 -2
  44. package/model/index.ts +4 -6
  45. package/package.json +1 -1
  46. package/dist/model/NonBeneficiaryTransferDestination.d.ts +0 -14
  47. package/dist/model/NonBeneficiaryTransferDestination.js +0 -2
  48. package/dist/model/NonBeneficiaryTransferDestination.js.map +0 -1
  49. package/dist/model/TransferDestinationInfo.d.ts +0 -19
  50. package/dist/model/TransferDestinationInfo.js +0 -20
  51. package/dist/model/TransferDestinationInfo.js.map +0 -1
  52. package/dist/model/TransferResponse.d.ts +0 -25
  53. package/dist/model/TransferResponse.js +0 -28
  54. package/dist/model/TransferResponse.js.map +0 -1
  55. package/model/NonBeneficiaryTransferDestination.ts +0 -18
  56. package/model/TransferDestinationInfo.ts +0 -37
  57. package/model/TransferResponse.ts +0 -45
@@ -1,37 +0,0 @@
1
- import * as isoly from "isoly"
2
- import { AddressInfo } from "./AddressInfo"
3
- import { ConfirmationOfPayeeResponse } from "./ConfirmationOfPayeeResponse"
4
-
5
- /**
6
- * Destination information
7
- */
8
- export interface TransferDestinationInfo {
9
- accountNumber?: string
10
- sortCode?: string
11
- iban?: string
12
- bic?: string
13
- currency: isoly.Currency
14
- address?: AddressInfo
15
- bankCountry?: string
16
- bankName?: string
17
- fullName?: string
18
- type?: "IBAN" | "SCAN"
19
- confirmationOfPayee?: ConfirmationOfPayeeResponse
20
- }
21
-
22
- export namespace TransferDestinationInfo {
23
- export function is(value: TransferDestinationInfo | any): value is TransferDestinationInfo {
24
- return (
25
- typeof value == "object" &&
26
- (value.accountNumber == undefined || typeof value.accountNumber == "string") &&
27
- (value.sortCode == undefined || typeof value.sortCode == "string") &&
28
- (value.iban == undefined || typeof value.iban == "string") &&
29
- (value.bic == undefined || typeof value.bic == "string") &&
30
- isoly.Currency.is(value.currency) &&
31
- (value.address == undefined || AddressInfo.is(value.address)) &&
32
- (value.fullName == undefined || typeof value.fullName == "string") &&
33
- (value.type == undefined || value.type == "IBAN" || value.type == "SCAN") &&
34
- (value.confirmationOfPayee == undefined || ConfirmationOfPayeeResponse.is(value.confirmationOfPayee))
35
- )
36
- }
37
- }
@@ -1,45 +0,0 @@
1
- import { AccountResponse } from "./AccountResponse"
2
- import { BeneficiaryResponse } from "./BeneficiaryResponse"
3
- import { BookingInfoResponse } from "./BookingInfoResponse"
4
- import { ProviderCode } from "./ProviderCode"
5
- import { TransferDestinationInfo } from "./TransferDestinationInfo"
6
- import { TransferStatus } from "./TransferStatus"
7
-
8
- export interface TransferResponse {
9
- sourceAccount?: AccountResponse
10
- beneficiary?: BeneficiaryResponse
11
- destinationAccount?: AccountResponse
12
- destination?: TransferDestinationInfo
13
- amount?: number
14
- status?: TransferStatus
15
- createdDate?: string
16
- paymentDate?: string
17
- reference?: string
18
- providerCode?: ProviderCode
19
- providerTransferId?: string
20
- scheduled?: boolean
21
- errorDescription?: string
22
- bookingInfo?: BookingInfoResponse
23
- }
24
-
25
- export namespace TransferResponse {
26
- export function is(value: TransferResponse | any): value is TransferResponse {
27
- return (
28
- typeof value == "object" &&
29
- (value.sourceAccount == undefined || AccountResponse.is(value.sourceAccount)) &&
30
- (value.beneficiary == undefined || BeneficiaryResponse.is(value.beneficiary)) &&
31
- (value.destinationAccount == undefined || AccountResponse.is(value.destinationAccount)) &&
32
- (value.destination == undefined || TransferDestinationInfo.is(value.destination)) &&
33
- (value.amount == undefined || typeof value.amount == "number") &&
34
- (value.status == undefined || TransferStatus.is(value.status)) &&
35
- (value.createdDate == undefined || typeof value.createdDate == "string") &&
36
- (value.paymentDate == undefined || typeof value.paymentDate == "string") &&
37
- (value.reference == undefined || typeof value.reference == "string") &&
38
- (value.providerCode == undefined || ProviderCode.is(value.providerCode)) &&
39
- (value.providerTransferId == undefined || typeof value.providerTransferId == "string") &&
40
- (value.scheduled == undefined || typeof value.scheduled == "boolean") &&
41
- (value.errorDescription == undefined || typeof value.errorDescription == "string") &&
42
- (value.bookingInfo == undefined || BookingInfoResponse.is(value.bookingInfo))
43
- )
44
- }
45
- }