1.0.14 • Published 7 months ago

@ejsmontscript/commission-forge v1.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

lang: en-US

title: Attributes

For more informations please visit: docs page

Attributes

Properties

  1. Required properties
PropertyTypeDescription
amountnumberYou have to set initial value how many money you want to send to beneficiary. Will be paid on the end of month period, so there is enough time to change it id you will need. Can be changed manually on account page or by request.
duration-in-monthsnumberYou have to set initial value for how many monthly periods you want to be subscribed to pay to beneficiary. You can change it later, but minimum number has to be higher than number of months that left or is in progress. Have to be at least 1. Can be changed manually on account page or by request.
  1. General appearance
PropertyTypeDefault valueDescription
labelstring-Text on the top of component that can be an explanation whcomponent is usefull. Label is created only if its value exist.
profit-expiration-textstring-Text information about beneficiary profit expiration. Use this property if you have selected in setting in your Commission Forge account that you want to remove beneficiaries which are not confirmed for longer time than value in settings. You don't need to write how long time is for expirarttion. Value of time will be added after this text. Example profit text: 'Profit will expire if we won't have chance to confirm recommendation after '. Text from example is default value if you have enabled beneficiary profit expiration in your account settings but value of 'profit-expiration-text' property is missing.
name-labelstringNameUsefull if you want change text of name label for example to other language.
hide-namebooleanfalseSet true to hide name input and label.
lastname-labelstringLastnameUsefull if you want change text of lastname label for example to other language.
hide-lastnamebooleanfalseSet true to hide lastname input and label.
background-colorstringrgb(245, 213, 94)Background color of whole component
border-colorstringrgb(229, 42, 29)Color of border of whole component
labels-text-sizestring1remfont size of all labels of inputs
labels-text-colorstringrgb(229 42 29)Color of all labels of inputs
  1. Submit button appearance
PropertyTypeDefault valueDescription
submit-button-textstring-Text of submit button of component that will store data of beneficiary. Button is not required and is created only if its text exist.
submit-button-heightstring2.75remHeight of submit button of component that will store data of beneficiary.
submit-button-widthstring2.75remWidth of submit button of component that will store data of beneficiary.
submit-button-paddingstring1remInline padding of submit button of component that will store data of beneficiary.
submit-button-text-colorstringwhiteColor of text of submit button of component that will store data of beneficiary.
submit-button-text-sizestring1remFont size of submit button of component that will store data of beneficiary.
submit-button-backgroundstringrgb(247 59 103)Background color of submit button of component that will store data of beneficiary.
submit-button-borderstringnoneBorder property of submit button of component that will store data of beneficiary.
submit-button-radiusstring0.375remBorder radius of submit button of component that will store data of beneficiary.

Methods

NameArgumentsReturnDescription
initAndRegisterComponent(options)options: { apiKey } - required-You have to use this function to provide API key. Without API key component will not be able to do any proper request
storeBeneficiary(selector = null)selector: string - optionalPromiseYou can use this function to store beneficiary data without using submit button built in component (for example if component is a part of existing form in your html and you have already own button). Argument selector can be used in case you have more than one use of commission-forge component in your html and need to store data form selected one
1.0.14

7 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago