Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

Adds support for the optional requestedProducts field in business and sole proprietor application requests and responses, allowing specification of Banking, BillPay, or Capital products.

Changes

  • New Product type: Union type for valid product values: "Banking" | "BillPay" | "Capital"
  • Request types: Added requestedProducts?: Product[] to BaseCreateApplicationRequestAttributes
    • Available in CreateBusinessApplicationRequest
    • Available in CreateSoleProprietorApplicationRequest
  • Response types: Added requestedProducts?: Product[] to BaseApplicationAttributes
    • Available in BusinessApplication
    • Available in IndividualApplication
  • Tests: Structure validation and integration tests for both application types
  • Same related changes to add requestedProducts support to application form v2

Usage

import { CreateBusinessApplicationRequest, CreateSoleProprietorApplicationRequest } from '@unit-finance/unit-node-sdk'

// Business application
const businessReq: CreateBusinessApplicationRequest = {
  type: "businessApplication",
  attributes: {
    // ... required fields
    requestedProducts: ["Banking", "BillPay"]
  }
}

// Sole proprietor application
const solePropReq: CreateSoleProprietorApplicationRequest = {
  type: "individualApplication",
  attributes: {
    // ... required fields
    soleProprietorship: true,
    requestedProducts: ["Banking", "Capital"]
  }
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for requestedProducts in business and sole props applications</issue_title>
<issue_description>

requestedProducts Array of Banking, BillPay, Capital Optional. The product being applied for. One of Banking, BillPay, or Capital. Please, contact us to enable BillPay and Capital products.

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 11, 2025 14:08
…tions

Co-authored-by: GermanSmoliar <97832762+GermanSmoliar@users.noreply.github.com>
Co-authored-by: GermanSmoliar <97832762+GermanSmoliar@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for requestedProducts in business and sole props applications Add requestedProducts field to business and sole proprietor applications Dec 11, 2025
Copilot AI requested a review from GermanSmoliar December 11, 2025 14:20
@GermanSmoliar GermanSmoliar marked this pull request as ready for review December 11, 2025 14:39
Copy link
Collaborator

@GermanSmoliar GermanSmoliar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge it after github is back

@YegorZh YegorZh force-pushed the copilot/add-requested-products-support branch 2 times, most recently from 1b451f7 to b79553d Compare December 11, 2025 18:09
@YegorZh YegorZh force-pushed the copilot/add-requested-products-support branch from b79553d to 69c6e4d Compare December 11, 2025 18:54
@ilyamerman ilyamerman merged commit 9d6ec15 into main Dec 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for requestedProducts in business and sole props applications

4 participants