Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: movesfinancial/unit-node-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: unit-finance/unit-node-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Oct 3, 2023

  1. Copy the full SHA
    10a5078 View commit details
  2. 0.32.0

    ilyamerman committed Oct 3, 2023
    Copy the full SHA
    6f97d8d View commit details
  3. Security upgrades (unit-finance#388)

    * Security upgrades
    
    * lint
    ilyamerman authored Oct 3, 2023
    Copy the full SHA
    4eba601 View commit details
  4. 0.32.1

    ilyamerman committed Oct 3, 2023
    Copy the full SHA
    20bdc64 View commit details

Commits on Oct 18, 2023

  1. Update CI-appsec-blackduck-master.yml (unit-finance#389)

    I noticed that the rapid scanning process of BlackDuck PR can fail if a new unit-node-sdk version is released before a full scan is completed.
    To address this issue, we are including an additional auto-trigger to the full scan workflow:
    This new trigger will run a full scan when a push is made in the main branch and there is a change to the package.json file.
    uri-peled-unit authored Oct 18, 2023
    Copy the full SHA
    32b9ca8 View commit details
  2. Copy the full SHA
    0b72768 View commit details
  3. fix getBinary

    ilyamerman committed Oct 18, 2023
    Copy the full SHA
    0ec2d32 View commit details
  4. 0.33.0

    ilyamerman committed Oct 18, 2023
    Copy the full SHA
    7b35f59 View commit details

Commits on Oct 22, 2023

  1. Copy the full SHA
    a590fab View commit details
  2. Bump @babel/traverse from 7.22.4 to 7.23.2 (unit-finance#393)

    Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.4 to 7.23.2.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/traverse"
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Ilya Merman <ilya@unit.co>
    dependabot[bot] and ilyamerman authored Oct 22, 2023
    Copy the full SHA
    0de948c View commit details
  3. Copy the full SHA
    b361a3b View commit details
  4. 0.34.0 (unit-finance#395)

    ilyamerman authored Oct 22, 2023
    Copy the full SHA
    0aeb146 View commit details

Commits on Oct 23, 2023

  1. Copy the full SHA
    48e9a81 View commit details
  2. Copy the full SHA
    5fd51b7 View commit details
  3. Copy the full SHA
    f90df06 View commit details
  4. Copy the full SHA
    69ba4e3 View commit details
  5. HOTFIX- disable diagnostic CI-appsec-blackduck-master.yml

    HOTFIX- disable diagnostic CI-appsec-blackduck-master.yml
    uri-peled-unit authored Oct 23, 2023
    Copy the full SHA
    20f31a2 View commit details
  6. Copy the full SHA
    2e35969 View commit details

Commits on Oct 26, 2023

  1. Copy the full SHA
    2b61f10 View commit details
  2. 0.35.0 (unit-finance#398)

    ilyamerman authored Oct 26, 2023
    Copy the full SHA
    c3bbaf8 View commit details

Commits on Nov 9, 2023

  1. Copy the full SHA
    ddf9d02 View commit details
  2. Copy the full SHA
    8d80e6e View commit details
  3. Copy the full SHA
    5406f0d View commit details
  4. 0.36.0 (unit-finance#402)

    * lint
    
    * 0.36.0
    ilyamerman authored Nov 9, 2023
    Copy the full SHA
    4965b59 View commit details

Commits on Nov 14, 2023

  1. Update CreateCheckPaymentRequest (unit-finance#404)

    * update counterparty type
    added missing fields
    
    * tiny test
    
    * description is mandatory
    axshani authored Nov 14, 2023
    Copy the full SHA
    2d1f880 View commit details
  2. 0.36.1 (unit-finance#405)

    ilyamerman authored Nov 14, 2023
    Copy the full SHA
    cd8f60d View commit details

Commits on Nov 15, 2023

  1. Export card type

    GermanSmoliar committed Nov 15, 2023
    Copy the full SHA
    b60f4b0 View commit details

Commits on Nov 19, 2023

  1. 0.37.0 (unit-finance#410)

    * Upgrade `axios` and `semver` versions (unit-finance#409)
    
    * Fix axios security vulnerability
    
    * Fix semver vulnerability
    
    * Add missing link and disputeType fields to Dispute object (unit-finance#408)
    
    * Add missing link and disputeType fields to Dispute object
    
    * Revert accidental deltion of decisionReason
    
    * - cancel check payment (unit-finance#406)
    
    - update check payment statuses
    - added a test
    
    Co-authored-by: ilyamerman <ilya@unit.co>
    
    * 0.37.0
    
    ---------
    
    Co-authored-by: Lucas Lemanowicz <lucas.github@protonmail.com>
    Co-authored-by: johnson-relay <144169131+johnson-relay@users.noreply.github.com>
    Co-authored-by: Alex Shani <77099403+axshani@users.noreply.github.com>
    4 people authored Nov 19, 2023
    Copy the full SHA
    1282cec View commit details

Commits on Dec 3, 2023

  1. fix: ReturnCheckPayment (unit-finance#411)

    * update request interface
    
    * added tiny test
    axshani authored Dec 3, 2023
    Copy the full SHA
    0ffd969 View commit details
  2. Copy the full SHA
    cbec23a View commit details
  3. Copy the full SHA
    5b724b6 View commit details
  4. Copy the full SHA
    83c096d View commit details

Commits on Dec 14, 2023

  1. Copy the full SHA
    3681bfe View commit details
  2. Copy the full SHA
    2796406 View commit details
  3. Copy the full SHA
    c6c7d7e View commit details
  4. 0.39.0 (unit-finance#420)

    ilyamerman authored Dec 14, 2023
    Copy the full SHA
    728a09c View commit details

Commits on Dec 28, 2023

  1. make CardLevelLimits properties optional (unit-finance#422)

    * make CardLevelLimits properties optional
    
    * lint fix
    randallmlough authored Dec 28, 2023
    Copy the full SHA
    94074cf View commit details
  2. Stringify filter[tags] (unit-finance#421)

    * JSON.stringify(params.tags)
    
    * create customStringify function
    
    * Remove console.log
    
    ---------
    
    Co-authored-by: ilyamerman <ilya@unit.co>
    axshani and ilyamerman authored Dec 28, 2023
    Copy the full SHA
    063b67e View commit details
  3. 0.40.0 (unit-finance#423)

    ilyamerman authored Dec 28, 2023
    Copy the full SHA
    e423105 View commit details

Commits on Jan 3, 2024

  1. Copy the full SHA
    7876525 View commit details
  2. Copy the full SHA
    cef97fb View commit details
  3. Authorization Requests simulations (unit-finance#426)

    * createCardTransactionAuthorizationRequest
    
    * createCardPurchaseAuthorizationRequest
    
    * CreateAtmAuthorizationRequest
    
    * added internationalServiceFee to CreateCardPurchaseSimulation
    
    * added Simulation name convention
    
    * lint-fix
    axshani authored Jan 3, 2024
    Copy the full SHA
    3380752 View commit details
  4. Copy the full SHA
    7575a63 View commit details
  5. Copy the full SHA
    87c7d4d View commit details
  6. Copy the full SHA
    4cd38fd View commit details

Commits on Jan 8, 2024

  1. Copy the full SHA
    6355911 View commit details
  2. Merge pull request unit-finance#429 from unit-finance/DSO-854-DETECT_…

    …PROJECT_VERSION_NAME
    
    DSO-854-DETECT_PROJECT_VERSION_NAME
    uri-peled-unit authored Jan 8, 2024
    Copy the full SHA
    364ed03 View commit details

Commits on Jan 11, 2024

  1. Copy the full SHA
    cc00eea View commit details

Commits on Jan 28, 2024

  1. Copy the full SHA
    ed6f344 View commit details
  2. Copy the full SHA
    4902710 View commit details
Showing with 4,754 additions and 2,262 deletions.
  1. +26 −6 .github/workflows/CI-appsec-blackduck-master.yml
  2. +12 −9 .github/workflows/CI-appsec-blackduck-pr.yml
  3. +1 −0 .github/workflows/CI.yml
  4. +2 −2 helpers.ts
  5. +1 −1 jest.setup.js
  6. +2,055 −1,401 package-lock.json
  7. +8 −8 package.json
  8. +7 −2 resources/account.ts
  9. +1 −1 resources/application.ts
  10. +5 −5 resources/applicationForm.ts
  11. +2 −2 resources/atmLocations.ts
  12. +15 −5 resources/baseResource.ts
  13. +0 −14 resources/billPays.ts
  14. +3 −3 resources/cards.ts
  15. +41 −0 resources/cashDeposits.ts
  16. +1 −1 resources/chargeback.ts
  17. +1 −1 resources/checkDeposit.ts
  18. +4 −0 resources/checkPayments.ts
  19. +20 −8 resources/counterparty.ts
  20. +74 −0 resources/creditApplication.ts
  21. +1 −1 resources/customer.ts
  22. +2 −1 resources/index.ts
  23. +31 −0 resources/migrations.ts
  24. +2 −2 resources/payments.ts
  25. +3 −3 resources/receivedPayments.ts
  26. +13 −1 resources/recurringPayments.ts
  27. +98 −0 resources/recurringRepayments.ts
  28. +5 −0 resources/repayments.ts
  29. +1 −1 resources/rewards.ts
  30. +73 −1 resources/simulations.ts
  31. +19 −13 resources/statements.ts
  32. +54 −0 resources/taxForms.ts
  33. +20 −3 resources/transactions.ts
  34. +11 −0 tests/accounts.spec.ts
  35. +127 −1 tests/applicationForms.spec.ts
  36. +37 −231 tests/applications.spec.ts
  37. +23 −0 tests/atmLocations.spec.ts
  38. +0 −18 tests/billPays.spec.ts
  39. +11 −0 tests/cards.spec.ts
  40. +55 −0 tests/cashDeposits.spec.ts
  41. +67 −2 tests/checkPayments.spec.ts
  42. +2 −2 tests/counterparties.spec.ts
  43. +44 −0 tests/creditApplications.spec.ts
  44. +18 −0 tests/migrations.spec.ts
  45. +7 −2 tests/orgTokens.spec.ts
  46. +1 −1 tests/payments.spec.ts
  47. +11 −0 tests/recurringPayments.spec.ts
  48. +170 −0 tests/recurringRepayments.spec.ts
  49. +156 −40 tests/repayments.spec.ts
  50. +4 −3 tests/statements.spec.ts
  51. +35 −0 tests/taxForms.spec.ts
  52. +114 −56 tests/testHelpers.ts
  53. +83 −1 types/account.ts
  54. +12 −86 types/application.ts
  55. +214 −25 types/applicationForm.ts
  56. +85 −0 types/baseRepaymentTypes.ts
  57. +0 −38 types/billPay.ts
  58. +19 −8 types/cards.ts
  59. +38 −0 types/cashDeposit.ts
  60. +18 −6 types/checkPayment.ts
  61. +60 −17 types/common.ts
  62. +116 −0 types/creditApplication.ts
  63. +16 −72 types/customer.ts
  64. +8 −0 types/customerToken.ts
  65. +10 −0 types/dispute.ts
  66. +67 −4 types/events.ts
  67. +2 −1 types/index.ts
  68. +57 −0 types/migration.ts
  69. +16 −0 types/orgToken.ts
  70. +16 −23 types/payments.ts
  71. +1 −41 types/recurringPayment.ts
  72. +145 −0 types/recurringRepayments.ts
  73. +82 −75 types/repayments.ts
  74. +1 −1 types/rewards.ts
  75. +66 −5 types/simulations.ts
  76. +51 −0 types/taxForms.ts
  77. +62 −5 types/transactions.ts
  78. +15 −3 unit.ts
32 changes: 26 additions & 6 deletions .github/workflows/CI-appsec-blackduck-master.yml
Original file line number Diff line number Diff line change
@@ -4,6 +4,12 @@ on:
#At 13:00 on every day-of-week from Sunday through Thursday.
- cron: '0 13 * * SUN-THU'
workflow_dispatch:
#The workflow will only run when a push that includes a change to the package.json file is made in the main branch.
push:
branches:
- main
paths:
- 'package.json'

jobs:
blackduck-scan:
@@ -12,18 +18,31 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v3

- name: Black Duck Intelligent Scan
uses: synopsys-sig/synopsys-action@v1.2.0
### Use below configurations to set specific detect environment varibales

- name: Black Duck Full Scan
uses: synopsys-sig/synopsys-action@v1.6.0

### Use below configuration to set specific detect environment variables
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}
DETECT_PROJECT_VERSION_NAME: main
with:
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackduck_scan_full: true

### Accepts Multiple Values
blackduck_scan_failure_severities: 'BLOCKER,CRITICAL'

### Uncomment below configuration to enable automatic fix pull request creation if vulnerabilities are reported
blackduck_fixpr_enabled: true
blackduck_fixpr_maxCount: 5
blackduck_fixpr_filter_severities: 'CRITICAL,HIGH'
blackduck_fixpr_useUpgradeGuidance: 'SHORT_TERM,LONG_TERM'
github_token: ${{ secrets.GITHUB_TOKEN }} # Mandatory when blackduck_fixpr_enabled is set to 'true'

### Uncomment below configuration if Synopsys Bridge diagnostic files needs to be uploaded
# include_diagnostics: true
# include_diagnostics: true

- name: If failed - Configure 1Password Service Account For Slack Webhook URL Secret
uses: 1password/load-secrets-action/configure@v1
@@ -52,4 +71,5 @@ jobs:
mention_users_when: "failure,warnings"
mention_groups: "!channel"
env:
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}

21 changes: 12 additions & 9 deletions .github/workflows/CI-appsec-blackduck-pr.yml
Original file line number Diff line number Diff line change
@@ -11,21 +11,23 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v3

- name: On pull requests - Black Duck RAPID Scan
if: ${{ github.event_name == 'pull_request' }}
uses: synopsys-sig/synopsys-action@v1.2.0
### Use below configurations to set specific detect environment varibales
- name: Black Duck PR Scan
uses: synopsys-sig/synopsys-action@v1.6.0

### Use below configuration to set specific detect environment variables
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}
DETECT_PROJECT_VERSION_NAME: main
with:
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackduck_scan_full: false
### Accepts Multiple Values
#blackduck_scan_failure_severities: 'BLOCKER,CRITICAL'

### Below configuration is used to enable automatic pull request comment based on Black Duck scan result
blackduck_automation_prcomment: true
github_token: ${{ secrets.GITHUB_TOKEN }} # Mandatory when blackduck_automation_prcomment is set to 'true'
blackduck_prComment_enabled: true
github_token: ${{ secrets.GITHUB_TOKEN }}
# Mandatory when blackduck_automation_prcomment is set to 'true'

### Uncomment below configuration if Synopsys Bridge diagnostic files needs to be uploaded
# include_diagnostics: true

@@ -57,3 +59,4 @@ jobs:
mention_groups: "!channel"
env:
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}

1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -17,4 +17,5 @@ jobs:
touch .env
echo UNIT_TOKEN=${{ secrets.UNIT_TOKEN }} >> .env
echo UNIT_API_URL=${{ secrets.UNIT_API_URL }} >> .env
echo TEST_COUNTERPARTY_PLAID_TOKEN=${{ secrets.TEST_COUNTERPARTY_PLAID_TOKEN }} >> .env
- run: npm run test
4 changes: 2 additions & 2 deletions helpers.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AddAuthorizedUsersRequest, BeneficialOwner, CloseAccountRequest, CloseAccountType, CloseReason, MobileWalletPayloadRequest, RemoveAuthorizedUsersRequest } from "./types"
import { State, Address, FullName, Phone, Status, Title, Officer, BusinessContact, AuthorizedUser, Counterparty, Coordinates, UsAddress, InternationalAddress, Relationship, RelationshipsArrayData } from "./types/common"
export function createUsAddress(street: string, street2: string | null, city: string, state: State | null, postalCode: string, country: "US"): UsAddress {
export function createUsAddress(street: string, street2: string | null, city: string, state: State, postalCode: string, country: "US"): UsAddress {
return {
street,
...(street2 && { street2 }),
city,
...(state && { state }),
state,
postalCode,
country
}
2 changes: 1 addition & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jest.setTimeout(30000);
jest.setTimeout(45000);
Loading