@melio-eng/web-sdk 1.5.0 → 1.6.0-pr.101.56b43ff
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flows/Flow.js +3 -0
- package/dist/types.d.ts +4 -1
- package/package.json +1 -1
package/dist/flows/Flow.js
CHANGED
|
@@ -143,6 +143,9 @@ export class Flow {
|
|
|
143
143
|
if (data.data?.requiredAction === 'NAVIGATE_TO_NEW_PAYMENT') {
|
|
144
144
|
this.emit('buttonClicked', { type: 'quickPayment' });
|
|
145
145
|
}
|
|
146
|
+
else if (data.data?.requiredAction === 'NAVIGATE_TO_BILLS_PAGE') {
|
|
147
|
+
this.emit('buttonClicked', { type: 'payBills' });
|
|
148
|
+
}
|
|
146
149
|
else {
|
|
147
150
|
logger.debug('PARTNER_ACTION_REQUIRED has no matching action and was not forwarded', { requiredAction: data.data?.requiredAction });
|
|
148
151
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -147,6 +147,9 @@ export interface NavigationData {
|
|
|
147
147
|
* `'quickPayment'` is the new payment button on the payments dashboard: take the user to
|
|
148
148
|
* your own supplier selection page, from which you open a payment flow.
|
|
149
149
|
*
|
|
150
|
+
* `'payBills'` is the "Pay bills" button on an empty dashboard tab: take the user to your
|
|
151
|
+
* own bills page.
|
|
152
|
+
*
|
|
150
153
|
* @remarks
|
|
151
154
|
* Buttons that end a flow keep their existing events — "Back to bills" still arrives as
|
|
152
155
|
* `completed`.
|
|
@@ -155,7 +158,7 @@ export interface NavigationData {
|
|
|
155
158
|
* unrecognised value as a no-op rather than an error.
|
|
156
159
|
*/
|
|
157
160
|
export interface ButtonClickedData {
|
|
158
|
-
type: 'quickPayment';
|
|
161
|
+
type: 'quickPayment' | 'payBills';
|
|
159
162
|
}
|
|
160
163
|
/**
|
|
161
164
|
* Flow completion data
|
package/package.json
CHANGED