Service Catalog
Services in src/app/core/pyb/services/ are root-provided
(@Injectable({ providedIn: 'root' })) unless noted. Feature-scoped services are
provided by their own module.
Identity and permissions
|
Calculates the full |
|
Reactive access to the current user. Subscribes once in its constructor,
caches |
|
|
|
|
Contracts and products
|
All six DocuSign flows, redirect construction and the replay guard. DocuSign Contract Flows |
|
Instant Transfer setup via TabaPay, fee calculation, error mapping. Instant Transfer |
|
Airwallex and unified card HTTP surface. Marqeta & Airwallex |
|
Advance Line activation helpers ( |
|
Contextual tooltip copy for the Advance Line widget. |
|
Descriptive copy for the contracts overview report. |
|
Reads the |
|
Transfer-permission checks ( |
|
Reward/progress punch-card logic ( |
Session-wide orchestration
|
The single place session-scoped background behaviour is started. Idempotent via
an |
|
Builds the pending/reached cancellation banners from marketplace opt-out dates. Cancellation & Reactivation |
|
Resolves the suspension reason to copy and opens the remediation modal. Suspension |
|
Shows the 2FA enrolment banner when the supplier has not enrolled. |
|
RxJS message bus for cross-component communication; also owns the account-cancelled banner. |
UI services
|
Persistent banners. |
|
Reactive responsive breakpoints, backed by |
|
Detects a supplier on the wrong environment host and rebuilds the URL to redirect them, optionally with a session token. |
|
Opens the export progress dialog and the export form dialog. Reports |
|
Named navigation helpers wrapping |
|
Typed URL construction and |
|
Turns plain text into safe HTML links. |
|
Resolves contextual help articles from |
|
Opens |
|
White-label / theme resolution ( |
BannerService.showBanner is delayed by one second
The delay lets the shell finish rendering before a banner appears. It also means a banner shown and immediately deleted may still appear, since the delete is not queued. |
Analytics
|
The Segment wrapper. |
|
Emits |
|
Amazon Seller Central connection events. |
|
|
Identity verification
|
Creates an Entrust verification session. |
|
Orchestrates the session, modal and tracking. Entrust Identity |
Infrastructure
|
Typed |
|
Holds the Plaid OAuth return URL and link token. Plaid |
|
PWA update detection and reload prompt. |
|
Reactive-form helpers — mark-all-touched, reset, common |
|
File reading as base64, type and size validation. |
|
Error toasts and special-case handling ( |
|
CMS blog access ( |
Widget services
core/pyb/services/widgets/
|
Product summary data for the dashboard panel. |
|
Grid configuration for that panel. |
|
Instant Access widget logic. |
|
Seller Card widget logic. |
Modal services
|
|
|
Opens the SMS challenge dialog. |
|
Plaid bank-verification explainer; |
|
Shows the survey during deactivation. |
|
Cancellation survey modal services. |
Feature-scoped services
Provided by their own module rather than root.
|
Reports shell state ( |
|
Supplies the supplier key to report data services. |
|
Manage Account tab state ( |
|
Cross-sell availability and offer configuration. |
|
Vendor Pay send-money submission. |
|
Partner catalog and filtering. |
|
Builds the personalised referral link. |
|
ID document upload. |
|
Deactivation and reactivation (root-provided but feature-specific). |
|
Onboarding pre-activation status bar (root-provided). |
|
Vendor Pay report data and mapping (one pair per report). |
|
Airwallex card operations. |
|
Marqeta card operations. |
Flows
core/pyb/flows/ — see Flows & Tasks Engine.
|
Draw funds. |
|
Accept an offer. |
|
Expedited first draw. |
|
Legacy product activation. |
|
New Long Term Contract. |
|
LTC renewal, with a change-contract fallback. |
|
Re-sign an updated agreement. |