@pax2pay/client 0.3.155 → 0.3.156
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/Payments/index.ts +3 -0
- package/dist/Client/Payments/index.d.ts +3 -0
- package/dist/Client/Payments/index.js +3 -0
- package/dist/Client/Payments/index.js.map +1 -1
- package/dist/model/TransferResponseV3.d.ts +4 -0
- package/dist/model/TransferResponseV3.js +4 -0
- package/dist/model/TransferResponseV3.js.map +1 -1
- package/model/TransferResponseV3.ts +6 -0
- package/package.json +1 -1
package/Client/Payments/index.ts
CHANGED
|
@@ -14,6 +14,9 @@ export class Payments extends List<model.PaymentResponse> {
|
|
|
14
14
|
async create(request: model.PaymentRequest) {
|
|
15
15
|
return await this.connection.post<model.ErrorResponse | model.PaymentResponse>(this.folder, request)
|
|
16
16
|
}
|
|
17
|
+
async createTokenised(request: model.PaymentRequest) {
|
|
18
|
+
return await this.connection.post<model.ErrorResponse | model.PaymentResponse>(`${this.folder}/tokenised`, request)
|
|
19
|
+
}
|
|
17
20
|
async get(id: string) {
|
|
18
21
|
return await this.connection.get<model.PaymentResponse>(`${this.folder}/${id}`)
|
|
19
22
|
}
|
|
@@ -9,6 +9,9 @@ export declare class Payments extends List<model.PaymentResponse> {
|
|
|
9
9
|
create(request: model.PaymentRequest): Promise<model.ErrorResponse | model.PaymentResponse | (model.ErrorResponse & {
|
|
10
10
|
status: 400 | 404 | 500 | 403 | 503;
|
|
11
11
|
})>;
|
|
12
|
+
createTokenised(request: model.PaymentRequest): Promise<model.ErrorResponse | model.PaymentResponse | (model.ErrorResponse & {
|
|
13
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
14
|
+
})>;
|
|
12
15
|
get(id: string): Promise<model.PaymentResponse | (model.ErrorResponse & {
|
|
13
16
|
status: 400 | 404 | 500 | 403 | 503;
|
|
14
17
|
})>;
|
|
@@ -10,6 +10,9 @@ export class Payments extends List {
|
|
|
10
10
|
async create(request) {
|
|
11
11
|
return await this.connection.post(this.folder, request);
|
|
12
12
|
}
|
|
13
|
+
async createTokenised(request) {
|
|
14
|
+
return await this.connection.post(`${this.folder}/tokenised`, request);
|
|
15
|
+
}
|
|
13
16
|
async get(id) {
|
|
14
17
|
return await this.connection.get(`${this.folder}/${id}`);
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Payments/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,OAAO,QAAS,SAAQ,IAA2B;IAExD,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,UAAU,CAAA;IAGtC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA6B;QACzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA8C,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACrG,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,EAAU;QACnB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAA;IAChF,CAAC;IACD,KAAK,CAAC,MAAM,CACX,OAA4B,EAC5B,QAAkD,EAClD,IAAa,EACb,IAAa,EACb,IAAI,GAAG,gBAAgB,EACvB,YAAY,GAAG,IAAI;QAEnB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CACjC,QAAQ,EACR,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CAElB,GAAG,IAAI,CAAC,MAAM,WAAW,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAA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AC,MAAM,WAAW,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAC1E,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ProviderCode } from "./ProviderCode";
|
|
2
|
+
import { TransferDestinationInfo } from "./TransferDestinationInfo";
|
|
1
3
|
export interface TransferResponseV3 {
|
|
2
4
|
beneficiary?: string;
|
|
3
5
|
reference: string;
|
|
4
6
|
providerTransferId: string;
|
|
7
|
+
providerCode: ProviderCode;
|
|
8
|
+
destination: TransferDestinationInfo;
|
|
5
9
|
}
|
|
6
10
|
export declare namespace TransferResponseV3 {
|
|
7
11
|
const type: import("isly/dist/cjs/object").IslyObject<TransferResponseV3, object>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { ProviderCode } from "./ProviderCode";
|
|
3
|
+
import { TransferDestinationInfo } from "./TransferDestinationInfo";
|
|
2
4
|
export var TransferResponseV3;
|
|
3
5
|
(function (TransferResponseV3) {
|
|
4
6
|
TransferResponseV3.type = isly.object({
|
|
5
7
|
beneficiary: isly.string().optional(),
|
|
6
8
|
reference: isly.string(),
|
|
7
9
|
providerTransferId: isly.string(),
|
|
10
|
+
providerCode: ProviderCode.type,
|
|
11
|
+
destination: isly.fromIs("TransferDestinationInfo", TransferDestinationInfo.is),
|
|
8
12
|
});
|
|
9
13
|
TransferResponseV3.is = TransferResponseV3.type.is;
|
|
10
14
|
})(TransferResponseV3 || (TransferResponseV3 = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferResponseV3.js","sourceRoot":"../","sources":["model/TransferResponseV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"TransferResponseV3.js","sourceRoot":"../","sources":["model/TransferResponseV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AASnE,MAAM,KAAW,kBAAkB,CASlC;AATD,WAAiB,kBAAkB;IACrB,uBAAI,GAAG,IAAI,CAAC,MAAM,CAAqB;QACnD,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,kBAAkB,EAAE,IAAI,CAAC,MAAM,EAAE;QACjC,YAAY,EAAE,YAAY,CAAC,IAAI;QAC/B,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,yBAAyB,EAAE,uBAAuB,CAAC,EAAE,CAAC;KAC/E,CAAC,CAAA;IACW,qBAAE,GAAG,mBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EATgB,kBAAkB,KAAlB,kBAAkB,QASlC"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
|
+
import { ProviderCode } from "./ProviderCode"
|
|
3
|
+
import { TransferDestinationInfo } from "./TransferDestinationInfo"
|
|
2
4
|
|
|
3
5
|
export interface TransferResponseV3 {
|
|
4
6
|
beneficiary?: string
|
|
5
7
|
reference: string
|
|
6
8
|
providerTransferId: string
|
|
9
|
+
providerCode: ProviderCode
|
|
10
|
+
destination: TransferDestinationInfo
|
|
7
11
|
}
|
|
8
12
|
export namespace TransferResponseV3 {
|
|
9
13
|
export const type = isly.object<TransferResponseV3>({
|
|
10
14
|
beneficiary: isly.string().optional(),
|
|
11
15
|
reference: isly.string(),
|
|
12
16
|
providerTransferId: isly.string(),
|
|
17
|
+
providerCode: ProviderCode.type,
|
|
18
|
+
destination: isly.fromIs("TransferDestinationInfo", TransferDestinationInfo.is),
|
|
13
19
|
})
|
|
14
20
|
export const is = type.is
|
|
15
21
|
}
|