@@ -139,7 +139,7 @@ import {
139139 ScreeningSupportedAssetResponse ,
140140 ScreeningSupportedProviders ,
141141 RegisterAssetResponse ,
142- UnspentInputsResponse ,
142+ UnspentInputsResponse
143143} from "./types" ;
144144import { AxiosProxyConfig , AxiosResponse , InternalAxiosRequestConfig } from "axios" ;
145145import { PIIEncryption } from "./pii-client" ;
@@ -162,6 +162,9 @@ import {
162162 WithdrawResponse
163163} from "./staking" ;
164164
165+ import { PaymentsApiClient } from "./payments/payments-api-client" ;
166+ import { Payments } from "./payments/payments-types"
167+
165168export * from "./types" ;
166169
167170export interface SDKOptions {
@@ -208,6 +211,7 @@ export class FireblocksSDK {
208211 private readonly apiClient : ApiClient ;
209212 private readonly apiNcw : NcwApiClient ;
210213 private readonly stakingApiClient : StakingApiClient ;
214+ private readonly paymentsApiClient : PaymentsApiClient ;
211215
212216 private piiClient : PIIEncryption ;
213217
@@ -235,6 +239,8 @@ export class FireblocksSDK {
235239 this . apiNcw = new NcwApiClient ( this . apiClient ) ;
236240
237241 this . stakingApiClient = new StakingApiClient ( this . apiClient ) ;
242+
243+ this . paymentsApiClient = new PaymentsApiClient ( this . apiClient ) ;
238244 }
239245
240246 /**
@@ -2447,4 +2453,52 @@ export class FireblocksSDK {
24472453 } ;
24482454 return this . apiClient . issuePostRequest ( `/v1/vault/assets/bulk` , body , requestOptions ) ;
24492455 }
2456+
2457+ /**
2458+ * Creates new payment workflow configuration
2459+ * @param request - Payments.CreateWorkflowConfigurationRequest
2460+ */
2461+ public async createPaymentWorkflowConfiguration ( request : Payments . CreateWorkflowConfigurationRequest ) : Promise < Payments . WorkflowConfiguration > {
2462+ return await this . paymentsApiClient . createPaymentWorkflowConfiguration ( request ) ;
2463+ }
2464+
2465+ /**
2466+ * Get payment workflow configuration
2467+ * @param configId - configuration id
2468+ */
2469+ public async getPaymentWorkflowConfiguration ( configId : string ) : Promise < Payments . WorkflowConfiguration > {
2470+ return await this . paymentsApiClient . getPaymentWorkflowConfiguration ( configId ) ;
2471+ }
2472+
2473+ /**
2474+ * Delete payment workflow configuration
2475+ * @param configId - configuration id
2476+ */
2477+ public async deletePaymentWorkflowConfiguration ( configId : string ) : Promise < Payments . WorkflowConfigurationId > {
2478+ return await this . paymentsApiClient . deletePaymentWorkflowConfiguration ( configId ) ;
2479+ }
2480+
2481+ /**
2482+ * Creates new payment workflow execution
2483+ * @param request - Payments.CreateWorkflowExecutionRequest
2484+ */
2485+ public async createPaymentWorkflowExecution ( request : Payments . CreateWorkflowExecutionRequest ) : Promise < Payments . WorkflowExecution > {
2486+ return await this . paymentsApiClient . createPaymentWorkflowExecution ( request ) ;
2487+ }
2488+
2489+ /**
2490+ * Get payment workflow execution
2491+ * @param workflowExeuctionId
2492+ */
2493+ public async getPaymentWorkflowExecution ( workflowExeuctionId : string ) : Promise < Payments . WorkflowExecution > {
2494+ return await this . paymentsApiClient . getPaymentWorkflowExecution ( workflowExeuctionId ) ;
2495+ }
2496+
2497+ /**
2498+ * Execute payment workflow
2499+ * @param workflowExeuctionId
2500+ */
2501+ public async executePaymentFlow ( workflowExeuctionId : string ) : Promise < Payments . WorkflowExecution > {
2502+ return await this . paymentsApiClient . executePaymentFlow ( workflowExeuctionId ) ;
2503+ }
24502504}
0 commit comments