@spritz-finance/service-client 0.2.91 → 0.2.92
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.
|
@@ -254,5 +254,6 @@ export declare class LiabilitiesServiceClient {
|
|
|
254
254
|
initializeExternalPayment(args: ExternalPaymentInput): Promise<Payment>;
|
|
255
255
|
scheduleExternalPayment(args: ExternalPaymentInput): Promise<Payment>;
|
|
256
256
|
updateExternalPaymentStatus(paymentId: string, status: PaymentStatus): Promise<Payment>;
|
|
257
|
+
getDirectPaymentToken(directPaymentId: string): Promise<string | null>;
|
|
257
258
|
}
|
|
258
259
|
export {};
|
|
@@ -144,5 +144,10 @@ class LiabilitiesServiceClient {
|
|
|
144
144
|
.post(`/external-payment/status/${paymentId}`, { status })
|
|
145
145
|
.then((res) => res.data);
|
|
146
146
|
}
|
|
147
|
+
async getDirectPaymentToken(directPaymentId) {
|
|
148
|
+
return this.client
|
|
149
|
+
.get(`/direct-payments/${directPaymentId}/token`)
|
|
150
|
+
.then((res) => res.data);
|
|
151
|
+
}
|
|
147
152
|
}
|
|
148
153
|
exports.LiabilitiesServiceClient = LiabilitiesServiceClient;
|