@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.
- package/Client/Merchants/index.ts +3 -0
- package/Client/Payments/index.ts +4 -1
- package/dist/Client/Merchants/index.d.ts +3 -0
- package/dist/Client/Merchants/index.js +3 -0
- package/dist/Client/Merchants/index.js.map +1 -1
- package/dist/Client/Payments/index.d.ts +4 -1
- package/dist/Client/Payments/index.js +3 -0
- package/dist/Client/Payments/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/AccountState.d.ts +1 -1
- package/dist/model/AccountState.js +0 -1
- package/dist/model/AccountState.js.map +1 -1
- package/dist/model/CardOperation.d.ts +10 -0
- package/dist/model/CardOperation.js +11 -0
- package/dist/model/CardOperation.js.map +1 -0
- package/dist/model/CardResponseV3.d.ts +25 -0
- package/dist/model/CardResponseV3.js +26 -0
- package/dist/model/CardResponseV3.js.map +1 -0
- package/dist/model/MerchantRequest.d.ts +4 -1
- package/dist/model/MerchantRequest.js +8 -7
- package/dist/model/MerchantRequest.js.map +1 -1
- package/dist/model/MerchantResponse.d.ts +3 -0
- package/dist/model/MerchantResponse.js +5 -0
- package/dist/model/MerchantResponse.js.map +1 -1
- package/dist/model/PaymentAmountScheduleRequest.d.ts +10 -0
- package/dist/model/PaymentAmountScheduleRequest.js +11 -0
- package/dist/model/PaymentAmountScheduleRequest.js.map +1 -0
- package/dist/model/PaymentAmountScheduleResponse.d.ts +10 -0
- package/dist/model/PaymentAmountScheduleResponse.js +11 -0
- package/dist/model/PaymentAmountScheduleResponse.js.map +1 -0
- package/dist/model/PaymentCardCreateRequest.d.ts +11 -0
- package/dist/model/PaymentCardCreateRequest.js +12 -0
- package/dist/model/PaymentCardCreateRequest.js.map +1 -0
- package/dist/model/PaymentDeliveryRequest.d.ts +12 -0
- package/dist/model/PaymentDeliveryRequest.js +13 -0
- package/dist/model/PaymentDeliveryRequest.js.map +1 -0
- package/dist/model/PaymentDeliveryResponse.d.ts +16 -0
- package/dist/model/PaymentDeliveryResponse.js +17 -0
- package/dist/model/PaymentDeliveryResponse.js.map +1 -0
- package/dist/model/PaymentRequest.d.ts +24 -0
- package/dist/model/PaymentRequest.js +25 -0
- package/dist/model/PaymentRequest.js.map +1 -0
- package/dist/model/PaymentResponse.d.ts +21 -4
- package/dist/model/PaymentResponse.js +27 -1
- package/dist/model/PaymentResponse.js.map +1 -1
- package/dist/model/PaymentTransferCreateRequest.d.ts +9 -0
- package/dist/model/PaymentTransferCreateRequest.js +10 -0
- package/dist/model/PaymentTransferCreateRequest.js.map +1 -0
- package/dist/model/TransferResponseV3.d.ts +9 -0
- package/dist/model/TransferResponseV3.js +10 -0
- package/dist/model/TransferResponseV3.js.map +1 -0
- package/dist/model/index.d.ts +11 -1
- package/dist/model/index.js +12 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +20 -0
- package/model/AccountState.ts +0 -1
- package/model/CardOperation.ts +14 -0
- package/model/CardResponseV3.ts +41 -0
- package/model/MerchantRequest.ts +9 -8
- package/model/MerchantResponse.ts +6 -0
- package/model/PaymentAmountScheduleRequest.ts +14 -0
- package/model/PaymentAmountScheduleResponse.ts +14 -0
- package/model/PaymentCardCreateRequest.ts +16 -0
- package/model/PaymentDeliveryRequest.ts +18 -0
- package/model/PaymentDeliveryResponse.ts +25 -0
- package/model/PaymentRequest.ts +37 -0
- package/model/PaymentResponse.ts +35 -4
- package/model/PaymentTransferCreateRequest.ts +13 -0
- package/model/TransferResponseV3.ts +13 -0
- package/model/index.ts +20 -0
- package/package.json +1 -1
package/model/PaymentResponse.ts
CHANGED
|
@@ -1,11 +1,42 @@
|
|
|
1
|
-
import { Currency } from "isoly"
|
|
2
|
-
import {
|
|
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
|
|
12
|
+
merchant?: MerchantResponse
|
|
13
|
+
account: string
|
|
8
14
|
amount: number
|
|
9
15
|
currency: Currency
|
|
10
|
-
card
|
|
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,
|