@pax2pay/client 0.3.105 → 0.3.107

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 (73) hide show
  1. package/Client/Merchants/index.ts +3 -0
  2. package/Client/Payments/index.ts +4 -1
  3. package/dist/Client/Merchants/index.d.ts +3 -0
  4. package/dist/Client/Merchants/index.js +3 -0
  5. package/dist/Client/Merchants/index.js.map +1 -1
  6. package/dist/Client/Payments/index.d.ts +4 -1
  7. package/dist/Client/Payments/index.js +3 -0
  8. package/dist/Client/Payments/index.js.map +1 -1
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.js +2 -2
  11. package/dist/index.js.map +1 -1
  12. package/dist/model/AccountState.d.ts +1 -1
  13. package/dist/model/AccountState.js +0 -1
  14. package/dist/model/AccountState.js.map +1 -1
  15. package/dist/model/CardOperation.d.ts +10 -0
  16. package/dist/model/CardOperation.js +11 -0
  17. package/dist/model/CardOperation.js.map +1 -0
  18. package/dist/model/CardResponseV3.d.ts +25 -0
  19. package/dist/model/CardResponseV3.js +26 -0
  20. package/dist/model/CardResponseV3.js.map +1 -0
  21. package/dist/model/MerchantRequest.d.ts +4 -1
  22. package/dist/model/MerchantRequest.js +8 -7
  23. package/dist/model/MerchantRequest.js.map +1 -1
  24. package/dist/model/MerchantResponse.d.ts +3 -0
  25. package/dist/model/MerchantResponse.js +5 -0
  26. package/dist/model/MerchantResponse.js.map +1 -1
  27. package/dist/model/PaymentAmountScheduleRequest.d.ts +10 -0
  28. package/dist/model/PaymentAmountScheduleRequest.js +11 -0
  29. package/dist/model/PaymentAmountScheduleRequest.js.map +1 -0
  30. package/dist/model/PaymentAmountScheduleResponse.d.ts +10 -0
  31. package/dist/model/PaymentAmountScheduleResponse.js +11 -0
  32. package/dist/model/PaymentAmountScheduleResponse.js.map +1 -0
  33. package/dist/model/PaymentCardCreateRequest.d.ts +11 -0
  34. package/dist/model/PaymentCardCreateRequest.js +12 -0
  35. package/dist/model/PaymentCardCreateRequest.js.map +1 -0
  36. package/dist/model/PaymentDeliveryRequest.d.ts +12 -0
  37. package/dist/model/PaymentDeliveryRequest.js +13 -0
  38. package/dist/model/PaymentDeliveryRequest.js.map +1 -0
  39. package/dist/model/PaymentDeliveryResponse.d.ts +16 -0
  40. package/dist/model/PaymentDeliveryResponse.js +17 -0
  41. package/dist/model/PaymentDeliveryResponse.js.map +1 -0
  42. package/dist/model/PaymentRequest.d.ts +24 -0
  43. package/dist/model/PaymentRequest.js +25 -0
  44. package/dist/model/PaymentRequest.js.map +1 -0
  45. package/dist/model/PaymentResponse.d.ts +21 -4
  46. package/dist/model/PaymentResponse.js +27 -1
  47. package/dist/model/PaymentResponse.js.map +1 -1
  48. package/dist/model/PaymentTransferCreateRequest.d.ts +9 -0
  49. package/dist/model/PaymentTransferCreateRequest.js +10 -0
  50. package/dist/model/PaymentTransferCreateRequest.js.map +1 -0
  51. package/dist/model/TransferResponseV3.d.ts +9 -0
  52. package/dist/model/TransferResponseV3.js +10 -0
  53. package/dist/model/TransferResponseV3.js.map +1 -0
  54. package/dist/model/index.d.ts +11 -1
  55. package/dist/model/index.js +12 -1
  56. package/dist/model/index.js.map +1 -1
  57. package/index.ts +20 -0
  58. package/model/AccountState.ts +0 -1
  59. package/model/CardOperation.ts +14 -0
  60. package/model/CardResponseV3.ts +41 -0
  61. package/model/MerchantRequest.ts +9 -8
  62. package/model/MerchantResponse.ts +6 -0
  63. package/model/PaymentAmountScheduleRequest.ts +14 -0
  64. package/model/PaymentAmountScheduleResponse.ts +14 -0
  65. package/model/PaymentCardCreateRequest.ts +16 -0
  66. package/model/PaymentDeliveryRequest.ts +18 -0
  67. package/model/PaymentDeliveryResponse.ts +25 -0
  68. package/model/PaymentRequest.ts +37 -0
  69. package/model/PaymentResponse.ts +35 -4
  70. package/model/PaymentTransferCreateRequest.ts +13 -0
  71. package/model/TransferResponseV3.ts +13 -0
  72. package/model/index.ts +20 -0
  73. package/package.json +1 -1
@@ -1,11 +1,42 @@
1
- import { Currency } from "isoly"
2
- import { CardResponseV2 } from "./CardResponseV2"
1
+ import { Currency, DateTime } from "isoly"
2
+ import { isly } from "isly"
3
+ import { BookingInfoResponse } from "./BookingInfoResponse"
4
+ import { CardResponseV3 } from "./CardResponseV3"
3
5
  import { MerchantResponse } from "./MerchantResponse"
6
+ import { PaymentAmountScheduleResponse } from "./PaymentAmountScheduleResponse"
7
+ import { PaymentDeliveryResponse } from "./PaymentDeliveryResponse"
8
+ import { TransferResponseV3 } from "./TransferResponseV3"
4
9
 
5
10
  export interface PaymentResponse {
6
11
  id: string
7
- merchant: MerchantResponse
12
+ merchant?: MerchantResponse
13
+ account: string
8
14
  amount: number
9
15
  currency: Currency
10
- card?: CardResponseV2
16
+ method: "card" | "transfer"
17
+ meta?: BookingInfoResponse
18
+ createdBy: string
19
+ createdOn: DateTime
20
+ card?: CardResponseV3
21
+ transfer?: TransferResponseV3
22
+ delivery?: PaymentDeliveryResponse
23
+ schedule?: PaymentAmountScheduleResponse[]
24
+ }
25
+ export namespace PaymentResponse {
26
+ export const type = isly.object<PaymentResponse>({
27
+ id: isly.string(),
28
+ merchant: isly.fromIs("MerchantResponse", MerchantResponse.is).optional(),
29
+ account: isly.string(),
30
+ amount: isly.number(),
31
+ currency: isly.fromIs("Currency", Currency.is),
32
+ method: isly.string(["card", "transfer"]),
33
+ meta: isly.fromIs("BookingInfoResponse", BookingInfoResponse.is).optional(),
34
+ createdBy: isly.string(),
35
+ createdOn: isly.string(),
36
+ card: isly.fromIs("CardResponseV3", CardResponseV3.is).optional(),
37
+ transfer: isly.fromIs("TransferResponseV3", TransferResponseV3.is).optional(),
38
+ delivery: isly.fromIs("PaymentDeliveryResponse", PaymentDeliveryResponse.is).optional(),
39
+ schedule: isly.array(isly.fromIs("PaymentAmountScheduleResponse", PaymentAmountScheduleResponse.is)).optional(),
40
+ })
41
+ export const is = type.is
11
42
  }
@@ -0,0 +1,13 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface PaymentTransferCreateRequest {
4
+ beneficiary?: string
5
+ reference?: string
6
+ }
7
+ export namespace PaymentTransferCreateRequest {
8
+ export const type = isly.object<PaymentTransferCreateRequest>({
9
+ beneficiary: isly.string().optional(),
10
+ reference: isly.string().optional(),
11
+ })
12
+ export const is = type.is
13
+ }
@@ -0,0 +1,13 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface TransferResponseV3 {
4
+ beneficiary?: string
5
+ reference: string
6
+ }
7
+ export namespace TransferResponseV3 {
8
+ export const type = isly.object<TransferResponseV3>({
9
+ beneficiary: isly.string().optional(),
10
+ reference: isly.string(),
11
+ })
12
+ export const is = type.is
13
+ }
package/model/index.ts CHANGED
@@ -32,10 +32,12 @@ import { CardDeliveryRequest } from "./CardDeliveryRequest"
32
32
  import { CardDeliveryResponse } from "./CardDeliveryResponse"
33
33
  import { CardForm } from "./CardForm"
34
34
  import { CardFundingAccountResponse } from "./CardFundingAccountResponse"
35
+ import { CardOperation } from "./CardOperation"
35
36
  import { CardOptionSearch } from "./CardOptionSearch"
36
37
  import { CardReportUrlRequest } from "./CardReportUrlRequest"
37
38
  import { CardResponse } from "./CardResponse"
38
39
  import { CardResponseV2 } from "./CardResponseV2"
40
+ import { CardResponseV3 } from "./CardResponseV3"
39
41
  import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
40
42
  import { CardScheduleTaskStatus } from "./CardScheduleTaskStatus"
41
43
  import { CardScheduleTaskType } from "./CardScheduleTaskType"
@@ -134,10 +136,17 @@ import { PasswordValidateRequest } from "./PasswordValidateRequest"
134
136
  import { PasswordValidateResponse } from "./PasswordValidateResponse"
135
137
  import { PaxpayFeature } from "./PaxpayFeature"
136
138
  import { Payload } from "./Payload"
139
+ import { PaymentAmountScheduleRequest } from "./PaymentAmountScheduleRequest"
140
+ import { PaymentAmountScheduleResponse } from "./PaymentAmountScheduleResponse"
141
+ import { PaymentCardCreateRequest } from "./PaymentCardCreateRequest"
142
+ import { PaymentDeliveryRequest } from "./PaymentDeliveryRequest"
143
+ import { PaymentDeliveryResponse } from "./PaymentDeliveryResponse"
137
144
  import { PaymentMethodOptionResponse } from "./PaymentMethodOptionResponse"
138
145
  import { PaymentMethodType } from "./PaymentMethodType"
139
146
  import { PaymentOption } from "./PaymentOption"
147
+ import { PaymentRequest } from "./PaymentRequest"
140
148
  import { PaymentResponse } from "./PaymentResponse"
149
+ import { PaymentTransferCreateRequest } from "./PaymentTransferCreateRequest"
141
150
  import { ProcessedStatement } from "./ProcessedStatement"
142
151
  import { ProductType } from "./ProductType"
143
152
  import { ProviderCode } from "./ProviderCode"
@@ -199,6 +208,7 @@ import { TransferRequest } from "./TransferRequest"
199
208
  import { TransferResponse } from "./TransferResponse"
200
209
  import { TransferResponseV2 } from "./TransferResponseV2"
201
210
  import { TransferResponseV2Summary } from "./TransferResponseV2Summary"
211
+ import { TransferResponseV3 } from "./TransferResponseV3"
202
212
  import { TransferSearch } from "./TransferSearch"
203
213
  import { TransferStatus } from "./TransferStatus"
204
214
  import { TravelPartyInfo } from "./TravelPartyInfo"
@@ -258,10 +268,12 @@ export {
258
268
  CardDeliveryResponse,
259
269
  CardForm,
260
270
  CardFundingAccountResponse,
271
+ CardOperation,
261
272
  CardOptionSearch,
262
273
  CardReportUrlRequest,
263
274
  CardResponse,
264
275
  CardResponseV2,
276
+ CardResponseV3,
265
277
  CardScheduleResponseItem,
266
278
  CardScheduleTaskStatus,
267
279
  CardScheduleTaskType,
@@ -360,10 +372,17 @@ export {
360
372
  PasswordValidateResponse,
361
373
  PaxpayFeature,
362
374
  Payload,
375
+ PaymentAmountScheduleRequest,
376
+ PaymentAmountScheduleResponse,
377
+ PaymentCardCreateRequest,
378
+ PaymentDeliveryRequest,
379
+ PaymentDeliveryResponse,
363
380
  PaymentMethodOptionResponse,
364
381
  PaymentMethodType,
365
382
  PaymentOption,
383
+ PaymentRequest,
366
384
  PaymentResponse,
385
+ PaymentTransferCreateRequest,
367
386
  ProcessedStatement,
368
387
  ProductType,
369
388
  ProviderCode,
@@ -426,6 +445,7 @@ export {
426
445
  TransferResponse,
427
446
  TransferResponseV2,
428
447
  TransferResponseV2Summary,
448
+ TransferResponseV3,
429
449
  TransferSearch,
430
450
  TransferStatus,
431
451
  TravelPartyInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.105",
3
+ "version": "0.3.107",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",