@ptkl/sdk 0.9.1 → 0.9.2
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/dist/index.cjs.js
CHANGED
|
@@ -18580,10 +18580,12 @@ class Payments extends IntegrationsBaseClient {
|
|
|
18580
18580
|
async settings(provider) {
|
|
18581
18581
|
return await this.client.get(`/karadjordje/v1/payment/${provider}/settings`);
|
|
18582
18582
|
}
|
|
18583
|
-
async getPaymentLink(provider,
|
|
18583
|
+
async getPaymentLink(provider, user, options) {
|
|
18584
|
+
var _a;
|
|
18584
18585
|
return await this.client.post(`/karadjordje/v1/payment/${provider}/${user}/getPaymentLink`, {
|
|
18585
|
-
totalAmount:
|
|
18586
|
-
description,
|
|
18586
|
+
totalAmount: options.totalAmount.toString(),
|
|
18587
|
+
description: options.description,
|
|
18588
|
+
redirectUrl: (_a = options.redirectUrl) !== null && _a !== undefined ? _a : null,
|
|
18587
18589
|
});
|
|
18588
18590
|
}
|
|
18589
18591
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -770,10 +770,12 @@ class Payments extends IntegrationsBaseClient {
|
|
|
770
770
|
async settings(provider) {
|
|
771
771
|
return await this.client.get(`/karadjordje/v1/payment/${provider}/settings`);
|
|
772
772
|
}
|
|
773
|
-
async getPaymentLink(provider,
|
|
773
|
+
async getPaymentLink(provider, user, options) {
|
|
774
|
+
var _a;
|
|
774
775
|
return await this.client.post(`/karadjordje/v1/payment/${provider}/${user}/getPaymentLink`, {
|
|
775
|
-
totalAmount:
|
|
776
|
-
description,
|
|
776
|
+
totalAmount: options.totalAmount.toString(),
|
|
777
|
+
description: options.description,
|
|
778
|
+
redirectUrl: (_a = options.redirectUrl) !== null && _a !== undefined ? _a : null,
|
|
777
779
|
});
|
|
778
780
|
}
|
|
779
781
|
}
|
package/dist/index.iife.js
CHANGED
|
@@ -771,10 +771,12 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
771
771
|
async settings(provider) {
|
|
772
772
|
return await this.client.get(`/karadjordje/v1/payment/${provider}/settings`);
|
|
773
773
|
}
|
|
774
|
-
async getPaymentLink(provider,
|
|
774
|
+
async getPaymentLink(provider, user, options) {
|
|
775
|
+
var _a;
|
|
775
776
|
return await this.client.post(`/karadjordje/v1/payment/${provider}/${user}/getPaymentLink`, {
|
|
776
|
-
totalAmount:
|
|
777
|
-
description,
|
|
777
|
+
totalAmount: options.totalAmount.toString(),
|
|
778
|
+
description: options.description,
|
|
779
|
+
redirectUrl: (_a = options.redirectUrl) !== null && _a !== undefined ? _a : null,
|
|
778
780
|
});
|
|
779
781
|
}
|
|
780
782
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
-
import { PaymentProvider } from "../../types/integrations";
|
|
2
|
+
import { PaymentProvider, GetPaymentLinkOptions } from "../../types/integrations";
|
|
3
3
|
export default class Payments extends IntegrationsBaseClient {
|
|
4
4
|
getTransactions(user: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
5
|
settings(provider: PaymentProvider): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
getPaymentLink(provider: PaymentProvider,
|
|
6
|
+
getPaymentLink(provider: PaymentProvider, user: string, options: GetPaymentLinkOptions): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
7
|
}
|