@embedded-banking-fundr/rabobank-invoice-finance v0.0.36
Rabobank Invoice Finance Component
Install
To install the Rabobank Invoice Finance component, you can use either npm or yarn. Run the following command depending on your package manager:
NPM
npm i @embedded-banking-fundr/rabobank-invoice-finance-uat
Attribute/Property
Here are the attributes and properties used to identify the partner and pre-fill information into the widget:
JSON Path | Attribute/Property | Description | Type | Example |
---|---|---|---|---|
partnerId | partnerId | The identifier for the partner widget. | String | "DLS_Widget" |
kvkNumber | kvkNumber | The KVK number for the company. | String | "33236408" |
contactDetails | contactDetails | The name of the contact person. | String (JSON) | "John" |
contactDetails.name | The name of the contact person. | String | "John" | |
contactDetails.phone | The phone number of the contact person. | String | "123-456-7890" | |
contactDetails.email | The email address of the contact person. | String | "johndoe@example.com" | |
contactDetails.surname | The surname of the contact person. | String | "Doe" | |
invoices | invoices | The ID of the invoice. | Array (JSON) | "INV123456" |
invoices[0].invoiceId | The ID of the invoice. | Array (JSON) | "INV123456" | |
invoices[0].invoiceAmount | The amount of the invoice. | String | "1000.00" | |
invoices[0].issuerDate | The date the invoice was issued. | String | "2023-09-13" | |
invoices[0].deadlineDate | The deadline date for the invoice payment. | String | "2023-10-13" | |
invoices[0].debtorName | The name of the debtor. | String | "John Doe" | |
invoices[0].debtorKvk | The KVK number of the debtor. | String | "42136408" |
REACT
import React from 'react';
import '@embedded-banking-fundr/rabobank-invoice-finance-uat/invoice-finance';
// define available props
const InvoiceFinanceWrapper = ({ kvkNumber }) => {
const partnerId = 'partnerId';
return (
<div>
<invoice-finance partnerId={partnerId} kvkNumber={kvkNumber}></invoice-finance>
</div>
);
};
export default InvoiceFinanceWrapper;
ANGULAR
Add "CUSTOM_ELEMENTS_SCHEMA" to the schema's in the app.module.ts
import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core';
...
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent],
schemas:[CUSTOM_ELEMENTS_SCHEMA]
})
import { Component, Input } from '@angular/core';
import '@embedded-banking-fundr/rabobank-invoice-finance-uat/invoice-finance';
@Component({
selector: 'app-invoice-finance-wrapper',
template: '<div><invoice-finance partnerId="{{partnerId}}" kvkNumber="{{kvkNumber}}" ></invoice-finance></div>',
})
export class InvoiceFinanceWrapperComponent {
partnerId: string = 'partnerId';
// define available props
@Input() kvkNumber: string | undefined;
}
VUE
<script setup>
import '@embedded-banking-fundr/rabobank-invoice-finance-uat/invoice-finance';
const partnerId = 'partnerId';
// define available props
const { kvkNumber } = defineProps(['kvkNumber']);
</script>
<template>
<div>
<invoice-finance :partnerId="partnerId" :kvkNumber="kvkNumber"></invoice-finance>
</div>
</template>
Styling Adjust the component's styling by modifying the CSS variables:
<style>
invoice-finance {
--rabobank-color-primary: #231f20;
--rabobank-color-secondary: #ee3632;
--rabobank-svg-primary: #231f20;
--rabobank-svg-primary-light: rgba(35, 31, 32, 0.69);
--rabobank-svg-secondary: #ee3632;
}
</style>
To use the invoice finance component in your project, include the HTML snippet and CSS styles mentioned above. Customize the CSS variables as needed to match the partner's platform styling.
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago