Supplier Service (supplier) React Components Documentation
Name
Type
Required
Description
supplierId
string
true
ID of Supplier
username
string
true
User (customer) name
userRoles
array
true
User (customer) roles
onUnauthorized
function
false
Callback fired when unauthorized
onChange
function
false
Callback fired on input change (event) => {}
onUpdate
function
false
Callback fired on supplier update (supplier) => {}
onLogout
function
false
Callback fired on logout
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
showNotification
function
false
UI notification
import { SupplierEditor } from 'supplier-information';
<SupplierEditor
key='company'
supplierId='hard001'
username='Marlon Wayans'
userRoles={['supplier-admin']}
/>
Supplier Registration Editor
Name
Type
Required
Description
supplier
object
false
Supplier object
user
object
true
User object. Should contain attributes id
, firstName
, lastName
and email
onUnauthorized
function
false
Callback fired when unauthorized
onChange
function
false
Callback fired on input change (event) => {}
onUpdate
function
false
Callback fired on supplier create (supplier) => {}
onLogout
function
false
Callback fired on logout
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
showNotification
function
false
UI notification
import { SupplierRegistrationEditor } from 'supplier-registration';
const newSupplier = {
supplierName: 'Test AG',
cityOfRegistration: 'Hamburg',
countryOfRegistration: 'DE',
taxIdentificationNo: '123-343-12',
vatIdentificationNo: 'DE72342359',
dunsNo: '12345',
commercialRegisterNo: 'HRB 12873243'
};
<SupplierRegistrationEditor
key='company'
supplier={newSupplier}
user={{ id: 'john.doe@example.com', firstName: 'John', lastName: 'Doe', email: 'john.doe@example.com' }}
/>
Name
Type
Required
Description
supplierId
string
true
ID of Supplier
username
string
true
User (customer) name
userRoles
array
true
User (customer) roles
onUnauthorized
function
false
Callback fired when unauthorized
onChange
function
false
Callback fired on input change (event) => {}
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
showNotification
function
false
UI notification
import { SupplierAddressEditor } from 'supplier-address';
<SupplierAddressEditor
key='address'
supplierId='hard001'
username='Marlon Wayans'
userRoles={['supplier-admin']}
/>
Name
Type
Required
Description
supplierId
string
true
ID of Supplier
username
string
true
User (customer) name
userRoles
array
true
User (customer) roles
onUnauthorized
function
false
Callback fired when unauthorized
onChange
function
false
Callback fired on input change (event) => {}
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
showNotification
function
false
UI notification
import { SupplierContactEditor } from 'supplier-contact';
<SupplierContactEditor
key='contact'
supplierId='hard001'
username='Marlon Wayans'
userRoles={['supplier-admin']}
/>
Supplier Bank Account Editor
Name
Type
Required
Description
supplierId
string
true
ID of Supplier
username
string
true
User (customer) name
userRoles
array
true
User (customer) roles
onUnauthorized
function
false
Callback fired when unauthorized
onChange
function
false
Callback fired on input change (event) => {}
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
showNotification
function
false
UI notification
import { SupplierBankAccountEditor } from 'supplier-bank_accounts';
<SupplierBankAccountEditor
key='bank_account'
supplierId='hard001'
username='Marlon Wayans'
userRoles={['supplier-admin']}
/>
Name
Type
Required
Description
supplierId
string
true
ID of Supplier
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
showNotification
function
false
UI notification
import { SupplierApproval } from 'supplier-access_approval';
<SupplierApproval
key='access_approval'
supplierId='hard001'
/>
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
import { SupplierSearch } from 'supplier-directory';
<SupplierSearch
key='directory'
/>
Supplier Profile Strength
Name
Type
Required
Description
supplierId
string
true
ID of Supplier
import { SupplierProfileStrength } from 'supplier-profile_strength';
<SupplierProfileStrength
key='profile_strength'
supplierId='hard001'
/>
Name
Type
Required
Description
value
object
false
Initial Supplier object
onChange
function
false
Callback fired when the value changes
onBlur
function
false
Callback fired when the component loose focus
Name
Type
Required
Description
i18n
object
true
internationalization fro translation
import { SupplierAutocomplete } from 'supplier-autocomplete';
<SupplierAutocomplete
key='autocomplete'
/>