@mbanq/core-sdk-js / commands / CreateLoanProduct
Function: CreateLoanProduct()
CreateLoanProduct(
data):Command<{data:objectOutputType; }, {id:number;resourceId:number; }>
Defined in: src/commands/rest/loanProduct.ts:31
Creates a new loan product.
Parameters
data
objectOutputType
The loan product creation parameters
Returns
Command<{ data: objectOutputType; }, { id: number; resourceId: number; }>
A Command that when executed returns the created loan product ID and resource ID
Example
typescript
const createCmd = CreateLoanProduct({
name: "Home Loan",
shortName: "HL",
currencyCode: "USD",
// ... other params
});
const result = await createCmd.execute(config);
console.log(result.resourceId);