UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

435 lines (350 loc) 24.5 kB
## Constants <dl> <dt><a href="#user-content-w_FORM_FIELD">FORM_FIELD</a> : <code>object</code></dt> <dd><p>Current constant include available type of fields which can be included to widget</p> </dd> <dt><a href="#user-content-w_STYLE">STYLE</a> : <code>object</code></dt> <dd><p>List of available style params for widget</p> </dd> <dt><a href="#user-content-w_TEXT">TEXT</a> : <code>object</code></dt> <dd><p>List of available text item params for widget</p> </dd> <dt><a href="#user-content-w_ELEMENT">ELEMENT</a> : <code>object</code></dt> <dd><p>List of available params for hide elements</p> </dd> <dt><a href="#user-content-w_SUPPORTED_CARD_TYPES">SUPPORTED_CARD_TYPES</a> : <code>object</code></dt> <dd><p>The list of available parameters for showing card icons</p> </dd> <dt><a href="#user-content-w_STYLABLE_ELEMENT">STYLABLE_ELEMENT</a> : <code>object</code></dt> <dd><p>Current constant include available type of element for styling</p> </dd> <dt><a href="#user-content-w_STYLABLE_ELEMENT_STATE">STYLABLE_ELEMENT_STATE</a> : <code>object</code></dt> <dd><p>Current constant include available states of element for styling</p> </dd> <dt><a href="#user-content-w_CARD_VALIDATORS">CARD_VALIDATORS</a> : <code>Record.&lt;string, string&gt;</code></dt> <dd><p>List of available form field validators dedicated to cards and their definition</p> </dd> <dt><a href="#user-content-w_GENERIC_VALIDATORS">GENERIC_VALIDATORS</a> : <code>Record.&lt;string, string&gt;</code></dt> <dd><p>List of available generic form field validators and their definition</p> </dd> <dt><a href="#user-content-w_TRIGGER">TRIGGER</a> : <code>object</code></dt> <dd><p>List of available triggers</p> </dd> </dl> ## Interfaces <dl> <dt><a href="#user-content-w_IPayPalMeta">IPayPalMeta</a></dt> <dd><p>Interface for PayPal checkout meta information</p> </dd> <dt><a href="#user-content-w_IStyles">IStyles</a></dt> <dd><p>Interface for classes that represent widget&#39;s styles.</p> </dd> <dt><a href="#user-content-w_ITexts">ITexts</a></dt> <dd><p>Interface for classes that represent widget&#39;s text.</p> </dd> <dt><a href="#user-content-w_IBamboraMeta">IBamboraMeta</a></dt> <dd><p>Interface for Bamboora meta information</p> </dd> <dt><a href="#user-content-w_IElementStyleInput">IElementStyleInput</a></dt> <dd><p>Interface for styling input element.</p> </dd> <dt><a href="#user-content-w_IElementStyleSubmitButton">IElementStyleSubmitButton</a></dt> <dd><p>Interface for styling submit_button element.</p> </dd> <dt><a href="#user-content-w_IElementStyleLabel">IElementStyleLabel</a></dt> <dd><p>Interface for styling label element.</p> </dd> <dt><a href="#user-content-w_IElementStyleTitle">IElementStyleTitle</a></dt> <dd><p>Interface for styling title element.</p> </dd> <dt><a href="#user-content-w_IElementStyleTitleDescription">IElementStyleTitleDescription</a></dt> <dd><p>Interface for styling title_description element.</p> </dd> <dt><a href="#user-content-w_ITriggerData">ITriggerData</a></dt> <dd><p>Interface for classes that represent a trigger data.</p> </dd> </dl> <a name="w_IPayPalMeta" id="w_IPayPalMeta" href="#user-content-w_IPayPalMeta">&nbsp;</a> ## IPayPalMeta Interface for PayPal checkout meta information **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [brand_name] | <code>string</code> | A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages | | [cart_border_color] | <code>string</code> | The HTML hex code for your principal identifying color | | [reference] | <code>string</code> | Merchant Customer Service number displayed on the PayPal pages | | [email] | <code>string</code> | The consumer’s email | | [hdr_img] | <code>string</code> | URL for the image you want to appear at the top left of the payment page | | [logo_img] | <code>string</code> | A URL to your logo image | | [pay_flow_color] | <code>string</code> | Sets the background color for the payment page. By default, the color is white. | | [first_name] | <code>string</code> | The consumer’s given names | | [last_name] | <code>string</code> | The consumer’s surname | | [address_line] | <code>string</code> | Street address | | [address_line2] | <code>string</code> | Second line of the address | | [address_city] | <code>string</code> | City | | [address_state] | <code>string</code> | State | | [address_postcode] | <code>string</code> | Postcode | | [address_country] | <code>string</code> | Country | | [phone] | <code>string</code> | The consumer’s phone number in E.164 international notation (Example: +12345678901) | | [hide_shipping_address] | <code>boolean</code> | Determines whether PayPal displays shipping address fields on the PayPal pages | <a name="w_IStyles" id="w_IStyles" href="#user-content-w_IStyles">&nbsp;</a> ## IStyles Interface for classes that represent widget's styles. **Kind**: global interface | Param | Type | | --- | --- | | [background_color] | <code>string</code> | | [text_color] | <code>string</code> | | [border_color] | <code>string</code> | | [button_color] | <code>string</code> | | [error_color] | <code>string</code> | | [success_color] | <code>string</code> | | [font_size] | <code>string</code> | | [font_family] | <code>string</code> | <a name="w_ITexts" id="w_ITexts" href="#user-content-w_ITexts">&nbsp;</a> ## ITexts Interface for classes that represent widget's text. **Kind**: global interface | Param | Type | | --- | --- | | [title] | <code>string</code> | | [title_h1] | <code>string</code> | | [title_h2] | <code>string</code> | | [title_h3] | <code>string</code> | | [title_h4] | <code>string</code> | | [title_h5] | <code>string</code> | | [title_h6] | <code>string</code> | | [finish_text] | <code>string</code> | | [title_description] | <code>string</code> | | [submit_button] | <code>string</code> | | [submit_button_processing] | <code>string</code> | <a name="w_IBamboraMeta" id="w_IBamboraMeta" href="#user-content-w_IBamboraMeta">&nbsp;</a> ## IBamboraMeta Interface for Bamboora meta information **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [customer_storage_number] | <code>string</code> | Customer storage number | | [tokenise_algorithm] | <code>number</code> | Tokenise algorithm | <a name="w_IElementStyleInput" id="w_IElementStyleInput" href="#user-content-w_IElementStyleInput">&nbsp;</a> ## IElementStyleInput Interface for styling input element. **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | | [border] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/border) | | [border_radius] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius) | | [background_color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color) | | [height] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/height) | | [text_decoration] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) | | [font_size] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) | | [font_family] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) | | [transition] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/transition) | | [line_height] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) | | [font_weight] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | | [padding] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) | | [margin] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/margin) | <a name="w_IElementStyleSubmitButton" id="w_IElementStyleSubmitButton" href="#user-content-w_IElementStyleSubmitButton">&nbsp;</a> ## IElementStyleSubmitButton Interface for styling submit_button element. **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | | [border] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/border) | | [border_radius] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius) | | [background_color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color) | | [text_decoration] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) | | [font_size] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) | | [font_family] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) | | [padding] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) | | [margin] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/margin) | | [transition] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/transition) | | [line_height] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) | | [font_weight] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | | [opacity] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity) | <a name="w_IElementStyleLabel" id="w_IElementStyleLabel" href="#user-content-w_IElementStyleLabel">&nbsp;</a> ## IElementStyleLabel Interface for styling label element. **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | | [text_decoration] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) | | [font_size] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) | | [font_family] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) | | [line_height] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) | | [font_weight] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | | [padding] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) | | [margin] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/margin) | <a name="w_IElementStyleTitle" id="w_IElementStyleTitle" href="#user-content-w_IElementStyleTitle">&nbsp;</a> ## IElementStyleTitle Interface for styling title element. **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | | [text_decoration] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) | | [font_size] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) | | [font_family] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) | | [line_height] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) | | [font_weight] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | | [padding] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) | | [margin] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/margin) | | ['text-align',] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) | <a name="w_IElementStyleTitleDescription" id="w_IElementStyleTitleDescription" href="#user-content-w_IElementStyleTitleDescription">&nbsp;</a> ## IElementStyleTitleDescription Interface for styling title_description element. **Kind**: global interface | Param | Type | Description | | --- | --- | --- | | [color] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | | [text_decoration] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) | | [font_size] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) | | [font_family] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) | | [line_height] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) | | [font_weight] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | | [padding] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) | | [margin] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/margin) | | ['text-align',] | <code>string</code> | Look more [mozilla.org/color](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) | <a name="w_ITriggerData" id="w_ITriggerData" href="#user-content-w_ITriggerData">&nbsp;</a> ## ITriggerData Interface for classes that represent a trigger data. **Kind**: global interface | Param | Type | | --- | --- | | [configuration_token] | <code>string</code> | | [tab_number] | <code>string</code> | | [elements] | <code>string</code> | | [form_values] | <code>string</code> | <a name="w_FORM_FIELD" id="w_FORM_FIELD" href="#user-content-w_FORM_FIELD">&nbsp;</a> ## FORM\_FIELD : <code>object</code> Current constant include available type of fields which can be included to widget **Kind**: global constant | Param | Type | Default | | --- | --- | --- | | CARD_NAME | <code>string</code> | <code>&quot;card_name&quot;</code> | | CARD_NUMBER | <code>string</code> | <code>&quot;card_number&quot;</code> | | EXPIRE_MONTH | <code>string</code> | <code>&quot;expire_month&quot;</code> | | EXPIRE_YEAR | <code>string</code> | <code>&quot;expire_year&quot;</code> | | CARD_CCV | <code>string</code> | <code>&quot;card_ccv&quot;</code> | | CARD_PIN | <code>string</code> | <code>&quot;card_pin&quot;</code> | | ACCOUNT_NAME | <code>string</code> | <code>&quot;account_name&quot;</code> | | ACCOUNT_BSB | <code>string</code> | <code>&quot;account_bsb&quot;</code> | | ACCOUNT_NUMBER | <code>string</code> | <code>&quot;account_number&quot;</code> | | ACCOUNT_ROUTING | <code>string</code> | <code>&quot;account_routing&quot;</code> | | ACCOUNT_HOLDER_TYPE | <code>string</code> | <code>&quot;account_holder_type&quot;</code> | | ACCOUNT_BANK_NAME | <code>string</code> | <code>&quot;account_bank_name&quot;</code> | | ACCOUNT_TYPE | <code>string</code> | <code>&quot;account_type&quot;</code> | | FIRST_NAME | <code>string</code> | <code>&quot;first_name&quot;</code> | | LAST_NAME | <code>string</code> | <code>&quot;last_name&quot;</code> | | EMAIL | <code>string</code> | <code>&quot;email&quot;</code> | | PHONE | <code>string</code> | <code>&quot;phone&quot;</code> | | PHONE2 | <code>string</code> | <code>&quot;phone2&quot;</code> | | ADDRESS_LINE1 | <code>string</code> | <code>&quot;address_line1&quot;</code> | | ADDRESS_LINE2 | <code>string</code> | <code>&quot;address_line2&quot;</code> | | ADDRESS_STATE | <code>string</code> | <code>&quot;address_state&quot;</code> | | ADDRESS_COUNTRY | <code>string</code> | <code>&quot;address_country&quot;</code> | | ADDRESS_CITY | <code>string</code> | <code>&quot;address_city&quot;</code> | | ADDRESS_POSTCODE | <code>string</code> | <code>&quot;address_postcode&quot;</code> | | ADDRESS_COMPANY | <code>string</code> | <code>&quot;address_company&quot;</code> | <a name="w_STYLE" id="w_STYLE" href="#user-content-w_STYLE">&nbsp;</a> ## STYLE : <code>object</code> List of available style params for widget **Kind**: global constant | Param | Type | Default | | --- | --- | --- | | BACKGROUND_COLOR | <code>string</code> | <code>&quot;background_color&quot;</code> | | TEXT_COLOR | <code>string</code> | <code>&quot;text_color&quot;</code> | | BORDER_COLOR | <code>string</code> | <code>&quot;border_color&quot;</code> | | BUTTON_COLOR | <code>string</code> | <code>&quot;button_color&quot;</code> | | ERROR_COLOR | <code>string</code> | <code>&quot;error_color&quot;</code> | | SUCCESS_COLOR | <code>string</code> | <code>&quot;success_color&quot;</code> | | FONT_SIZE | <code>string</code> | <code>&quot;font_size&quot;</code> | | FONT_FAMILY | <code>string</code> | <code>&quot;font_family&quot;</code> | <a name="w_TEXT" id="w_TEXT" href="#user-content-w_TEXT">&nbsp;</a> ## TEXT : <code>object</code> List of available text item params for widget **Kind**: global constant | Param | Type | Default | | --- | --- | --- | | TITLE | <code>string</code> | <code>&quot;title&quot;</code> | | FINISH | <code>string</code> | <code>&quot;finish_text&quot;</code> | <a name="w_ELEMENT" id="w_ELEMENT" href="#user-content-w_ELEMENT">&nbsp;</a> ## ELEMENT : <code>object</code> List of available params for hide elements **Kind**: global constant | Param | Type | Default | | --- | --- | --- | | SUBMIT_BUTTON | <code>string</code> | <code>&quot;submit_button&quot;</code> | | TABS | <code>string</code> | <code>&quot;tabs&quot;</code> | <a name="w_SUPPORTED_CARD_TYPES" id="w_SUPPORTED_CARD_TYPES" href="#user-content-w_SUPPORTED_CARD_TYPES">&nbsp;</a> ## SUPPORTED\_CARD\_TYPES : <code>object</code> The list of available parameters for showing card icons **Kind**: global constant | Param | Type | Default | | --- | --- | --- | | AMEX | <code>string</code> | <code>&quot;amex&quot;</code> | | AUSBC | <code>string</code> | <code>&quot;ausbc&quot;</code> | | DINERS | <code>string</code> | <code>&quot;diners&quot;</code> | | DISCOVER | <code>string</code> | <code>&quot;discover&quot;</code> | | JAPCB | <code>string</code> | <code>&quot;japcb&quot;</code> | | LASER | <code>string</code> | <code>&quot;laser&quot;</code> | | MASTERCARD | <code>string</code> | <code>&quot;mastercard&quot;</code> | | SOLO | <code>string</code> | <code>&quot;solo&quot;</code> | | VISA | <code>string</code> | <code>&quot;visa&quot;</code> | | VISA_WHITE | <code>string</code> | <code>&quot;visa_white&quot;</code> | | UNIONPAY | <code>string</code> | <code>&quot;unionpay&quot;</code> | <a name="w_STYLABLE_ELEMENT" id="w_STYLABLE_ELEMENT" href="#user-content-w_STYLABLE_ELEMENT">&nbsp;</a> ## STYLABLE\_ELEMENT : <code>object</code> Current constant include available type of element for styling **Kind**: global constant | Param | Type | Default | Description | | --- | --- | --- | --- | | INPUT | <code>string</code> | <code>&quot;input.&quot;</code> | These states are available: [STYLABLE_ELEMENT_STATE.ERROR](#user-content-w_STYLABLE_ELEMENT_STATE), [STYLABLE_ELEMENT_STATE.FOCUS](#user-content-w_STYLABLE_ELEMENT_STATE). These styles are available [IElementStyleInput](#user-content-w_IElementStyleInput) | | SUBMIT_BUTTON | <code>string</code> | <code>&quot;submit_button&quot;</code> | These states are available: [STYLABLE_ELEMENT_STATE.HOVER](#user-content-w_STYLABLE_ELEMENT_STATE). These styles are available [IElementStyleSubmitButton](#user-content-w_IElementStyleSubmitButton) | | LABEL | <code>string</code> | <code>&quot;label.&quot;</code> | These styles are available [IElementStyleLabel](#user-content-w_IElementStyleLabel) | | TITLE | <code>string</code> | <code>&quot;title.&quot;</code> | These styles are available [IElementStyleTitle](#user-content-w_IElementStyleTitle) | | TITLE_DESCRIPTION | <code>string</code> | <code>&quot;title_description.&quot;</code> | These styles are available [IElementStyleTitleDescription](#user-content-w_IElementStyleTitleDescription) | <a name="w_STYLABLE_ELEMENT_STATE" id="w_STYLABLE_ELEMENT_STATE" href="#user-content-w_STYLABLE_ELEMENT_STATE">&nbsp;</a> ## STYLABLE\_ELEMENT\_STATE : <code>object</code> Current constant include available states of element for styling **Kind**: global constant | Param | Type | Default | Description | | --- | --- | --- | --- | | ERROR | <code>string</code> | <code>&quot;error&quot;</code> | client|server validation. This state applies to: input | | FOCUS | <code>string</code> | <code>&quot;focus&quot;</code> | focus. This state applies to: input | | HOVER | <code>string</code> | <code>&quot;hover&quot;</code> | focus. This state applies to: submit_button | <a name="w_CARD_VALIDATORS" id="w_CARD_VALIDATORS" href="#user-content-w_CARD_VALIDATORS">&nbsp;</a> ## CARD\_VALIDATORS : <code>Record.&lt;string, string&gt;</code> List of available form field validators dedicated to cards and their definition **Kind**: global constant | Param | Type | Default | Description | | --- | --- | --- | --- | | CVV | <code>string</code> | <code>&quot;cardCvvValidation&quot;</code> | Asserts that CVV contains zero or more digits and is a number | | EXPIRY_DATE | <code>string</code> | <code>&quot;expireDateValidation&quot;</code> | Asserts value is a date in the future with format MM/YY | | HOLDER_NAME | <code>string</code> | <code>&quot;cardHoldernameValidation&quot;</code> | Asserts value is a name that respects the ITU-T T.50 standard (@see https://www.itu.int/rec/T-REC-T.50/en) | | NUMBER | <code>string</code> | <code>&quot;cardNumberValidation&quot;</code> | Asserts the value matches a known card scheme and as a the correct length. E.g., matches a 13, 16 or 19 digit bank card, **or**, a 13 to 25 digit Vii Gift card | | PIN | <code>string</code> | <code>&quot;cardPinValidation&quot;</code> | Asserts the value is a number with exactly 4 digits | <a name="w_GENERIC_VALIDATORS" id="w_GENERIC_VALIDATORS" href="#user-content-w_GENERIC_VALIDATORS">&nbsp;</a> ## GENERIC\_VALIDATORS : <code>Record.&lt;string, string&gt;</code> List of available generic form field validators and their definition **Kind**: global constant | Param | Type | Default | Description | | --- | --- | --- | --- | | REQUIRED | <code>string</code> | <code>&quot;required&quot;</code> | Asserts the input or form field has a value defined truthy value | <a name="w_TRIGGER" id="w_TRIGGER" href="#user-content-w_TRIGGER">&nbsp;</a> ## TRIGGER : <code>object</code> List of available triggers **Kind**: global constant | Param | Type | Default | | --- | --- | --- | | SUBMIT_FORM | <code>string</code> | <code>&quot;submit_form&quot;</code> | | CHANGE_TAB | <code>string</code> | <code>&quot;tab&quot;</code> | | HIDE_ELEMENTS | <code>string</code> | <code>&quot;hide_elements&quot;</code> | | SHOW_ELEMENTS | <code>string</code> | <code>&quot;show_elements&quot;</code> | | REFRESH_CHECKOUT | <code>string</code> | <code>&quot;refresh_checkout&quot;</code> | | UPDATE_FORM_VALUES | <code>string</code> | <code>&quot;update_form_values&quot;</code> | | INIT_CHECKOUT | <code>string</code> | <code>&quot;init_checkout&quot;</code> | | INJECT_CUSTOMER_DATA | <code>string</code> | <code>&quot;inject_customer_data&quot;</code> |