Skip to content

Commit

Permalink
chore(processor): update from upstream (#57)
Browse files Browse the repository at this point in the history
* Write unit test for getStatus

* Add unit test cases and sinon dependency for stub purpose

* Update operation.service.spec.ts

* Bump msw from 2.2.0 to 2.2.1 in /processor

Bumps [msw](https://github.com/mswjs/msw) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](mswjs/msw@v2.2.0...v2.2.1)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump eslint-plugin-jest from 27.8.0 to 27.9.0 in /processor

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.8.0 to 27.9.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v27.8.0...v27.9.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix(connector): config type and details field (#49)

* Add unit test for cancel payment

* Refactor the mock data

* Remove skipped unit test

* Update operation.route.ts

* Avoid using sinon

* Bump dotenv from 16.4.4 to 16.4.5 in /processor

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.4 to 16.4.5.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v16.4.4...v16.4.5)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/parser from 7.0.1 to 7.0.2 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump sass from 1.71.0 to 1.71.1 in /enabler

Bumps [sass](https://github.com/sass/dart-sass) from 1.71.0 to 1.71.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](sass/dart-sass@1.71.0...1.71.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump vite from 5.1.3 to 5.1.4 in /enabler

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.3 to 5.1.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.1.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools-backend/loggers in /processor

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.17.2 to 22.18.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump nodemon from 3.0.3 to 3.1.0 in /processor

Bumps [nodemon](https://github.com/remy/nodemon) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](remy/nodemon@v3.0.3...v3.1.0)

---
updated-dependencies:
- dependency-name: nodemon
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.19 to 20.11.20 in /processor

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.19 to 20.11.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.19 to 20.11.20 in /enabler

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.19 to 20.11.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump eslint from 8.56.0 to 8.57.0 in /processor

Bumps [eslint](https://github.com/eslint/eslint) from 8.56.0 to 8.57.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.56.0...v8.57.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools/connect-payments-sdk in /processor

Bumps @commercetools/connect-payments-sdk from 0.1.0 to 0.2.0.

---
updated-dependencies:
- dependency-name: "@commercetools/connect-payments-sdk"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/eslint-plugin from 7.0.1 to 7.1.0 in /processor

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/parser from 7.0.2 to 7.1.0 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools/platform-sdk from 7.3.0 to 7.4.0 in /processor

Bumps [@commercetools/platform-sdk](https://github.com/commercetools/commercetools-typescript-sdks) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/commercetools/commercetools-typescript-sdks/releases)
- [Changelog](https://github.com/commercetools/commercetools-sdk-typescript/blob/master/changes.md)
- [Commits](https://github.com/commercetools/commercetools-typescript-sdks/compare/@commercetools/[email protected]...@commercetools/[email protected])

---
updated-dependencies:
- dependency-name: "@commercetools/platform-sdk"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Modify the configurations of required environment variables

* Update ci.yml

* Update ci.yml

* Update connect.yaml

* Remove unnecessary environment variable from CI/CD pipeline

* fix(enabler): SessionId example usage

* fix(enabler): Add updates from Adyen

* Bump msw from 2.2.1 to 2.2.2 in /processor

Bumps [msw](https://github.com/mswjs/msw) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](mswjs/msw@v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Refactor abstract payment service

* Fix build failure

* Bump @commercetools-backend/loggers in /processor

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.18.0 to 22.19.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.20 to 20.11.24 in /processor

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.20 to 20.11.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.20 to 20.11.24 in /enabler

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.20 to 20.11.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix unit test

* Update abstract-payment.service.ts

* Add function document to mock-payment service

* Bump @sinclair/typebox from 0.32.14 to 0.32.15 in /processor

Bumps [@sinclair/typebox](https://github.com/sinclairzx81/typebox) from 0.32.14 to 0.32.15.
- [Commits](sinclairzx81/typebox@0.32.14...0.32.15)

---
updated-dependencies:
- dependency-name: "@sinclair/typebox"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update typescript doc

* feat(payments): set the payment interface from the context

* Bump fastify from 4.26.1 to 4.26.2 in /processor

Bumps [fastify](https://github.com/fastify/fastify) from 4.26.1 to 4.26.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](fastify/fastify@v4.26.1...v4.26.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(template): clean up and tiny fixes

* Bump @typescript-eslint/parser from 7.1.0 to 7.1.1 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump vite from 5.1.4 to 5.1.5 in /enabler

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.4 to 5.1.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.1.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/eslint-plugin from 7.1.0 to 7.1.1 in /processor

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update mock-payment.service.spec.ts (#85)

* Bump @types/node from 20.11.24 to 20.11.25 in /processor

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.24 to 20.11.25.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump typescript from 5.3.3 to 5.4.2 in /enabler

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.3.3...v5.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump jose from 4.15.4 to 4.15.5 in /processor

Bumps [jose](https://github.com/panva/jose) from 4.15.4 to 4.15.5.
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/v4.15.5/CHANGELOG.md)
- [Commits](panva/jose@v4.15.4...v4.15.5)

---
updated-dependencies:
- dependency-name: jose
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump msw from 2.2.2 to 2.2.3 in /processor

Bumps [msw](https://github.com/mswjs/msw) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](mswjs/msw@v2.2.2...v2.2.3)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools-backend/loggers in /processor

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.19.0 to 22.20.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.24 to 20.11.26 in /enabler

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.24 to 20.11.26.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.25 to 20.11.26 in /processor

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.25 to 20.11.26.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(payments): added support for the new version of the payments-sdk where the merchant return url can be retrieved from the session

* Bump typescript from 5.3.3 to 5.4.2 in /processor

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.3.3...v5.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump vite from 5.1.5 to 5.1.6 in /enabler

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.5 to 5.1.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.1.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/eslint-plugin from 7.1.1 to 7.2.0 in /processor

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.1.1 to 7.2.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.2.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/parser from 7.1.1 to 7.2.0 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.1.1 to 7.2.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.2.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update ci.yml

* Update ci.yml

* Update ci.yml

* feat(enabler): solved TS build issue

* Update node version to avoid deprecation

* Revert node changes because connect supports 18.

* Create CODEOWNERS (#96)

* Create CODEOWNERS

Adding codeowners to impose approval process on PRs.

* Update README.md

* chore(paypal-connector): rename instances of mock to paypal (#5)

* chore(paypal-connector): implement config endpoint

* feat(connector): implement status endpoint (#12)

* feat(connector): payment intents (#18)

* feat(connector): payment intents

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* pr feedback

* remove nock

* wip: save changes

* graceful error handling

* chore(deps-dev): bump @typescript-eslint/parser in /processor (#27)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @typescript-eslint/eslint-plugin in /processor (#25)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Merge changes from upstream (#28)

* Write unit test for getStatus

* Add unit test cases and sinon dependency for stub purpose

* Update operation.service.spec.ts

* Add unit test for cancel payment

* Refactor the mock data

* Remove skipped unit test

* Update operation.route.ts

* Avoid using sinon

* fix(connector): config type and details field (#49)

* Bump dotenv from 16.4.4 to 16.4.5 in /processor

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.4 to 16.4.5.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v16.4.4...v16.4.5)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Modify the configurations of required environment variables

* Update ci.yml

* Update ci.yml

* Update connect.yaml

* Remove unnecessary environment variable from CI/CD pipeline

* Bump @typescript-eslint/parser from 7.0.2 to 7.1.0 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools/platform-sdk from 7.3.0 to 7.4.0 in /processor

Bumps [@commercetools/platform-sdk](https://github.com/commercetools/commercetools-typescript-sdks) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/commercetools/commercetools-typescript-sdks/releases)
- [Changelog](https://github.com/commercetools/commercetools-sdk-typescript/blob/master/changes.md)
- [Commits](https://github.com/commercetools/commercetools-typescript-sdks/compare/@commercetools/[email protected]...@commercetools/[email protected])

---
updated-dependencies:
- dependency-name: "@commercetools/platform-sdk"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(connector): payment intents (#18)

* feat(connector): payment intents

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* pr feedback

* remove nock

* wip: save changes

* graceful error handling

* update healthcheck method

* fix tests

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: King-Hin Leung <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @commercetools-backend/loggers in /processor (#34)

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.18.0 to 22.19.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(template): refactor operations to be included in abstract class (#35)

* feat(connectors): Implement notification endpoint (#38)

* feat(connectors): Implement notification endpoint

* fix notification schema

* fix notification schema 2

* improve error thrown

* update errors and test

* pr feedback

* chore(processor): update repo from upstream (#41)

* Write unit test for getStatus

* Add unit test cases and sinon dependency for stub purpose

* Update operation.service.spec.ts

* Bump msw from 2.2.0 to 2.2.1 in /processor

Bumps [msw](https://github.com/mswjs/msw) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](mswjs/msw@v2.2.0...v2.2.1)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump eslint-plugin-jest from 27.8.0 to 27.9.0 in /processor

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.8.0 to 27.9.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v27.8.0...v27.9.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix(connector): config type and details field (#49)

* Add unit test for cancel payment

* Refactor the mock data

* Remove skipped unit test

* Update operation.route.ts

* Avoid using sinon

* Bump dotenv from 16.4.4 to 16.4.5 in /processor

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.4 to 16.4.5.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v16.4.4...v16.4.5)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/parser from 7.0.1 to 7.0.2 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump sass from 1.71.0 to 1.71.1 in /enabler

Bumps [sass](https://github.com/sass/dart-sass) from 1.71.0 to 1.71.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](sass/dart-sass@1.71.0...1.71.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump vite from 5.1.3 to 5.1.4 in /enabler

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.3 to 5.1.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.1.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools-backend/loggers in /processor

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.17.2 to 22.18.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump nodemon from 3.0.3 to 3.1.0 in /processor

Bumps [nodemon](https://github.com/remy/nodemon) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](remy/nodemon@v3.0.3...v3.1.0)

---
updated-dependencies:
- dependency-name: nodemon
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.19 to 20.11.20 in /processor

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.19 to 20.11.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.19 to 20.11.20 in /enabler

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.19 to 20.11.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump eslint from 8.56.0 to 8.57.0 in /processor

Bumps [eslint](https://github.com/eslint/eslint) from 8.56.0 to 8.57.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.56.0...v8.57.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools/connect-payments-sdk in /processor

Bumps @commercetools/connect-payments-sdk from 0.1.0 to 0.2.0.

---
updated-dependencies:
- dependency-name: "@commercetools/connect-payments-sdk"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/eslint-plugin from 7.0.1 to 7.1.0 in /processor

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @typescript-eslint/parser from 7.0.2 to 7.1.0 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools/platform-sdk from 7.3.0 to 7.4.0 in /processor

Bumps [@commercetools/platform-sdk](https://github.com/commercetools/commercetools-typescript-sdks) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/commercetools/commercetools-typescript-sdks/releases)
- [Changelog](https://github.com/commercetools/commercetools-sdk-typescript/blob/master/changes.md)
- [Commits](https://github.com/commercetools/commercetools-typescript-sdks/compare/@commercetools/[email protected]...@commercetools/[email protected])

---
updated-dependencies:
- dependency-name: "@commercetools/platform-sdk"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Modify the configurations of required environment variables

* Update ci.yml

* Update ci.yml

* Update connect.yaml

* Remove unnecessary environment variable from CI/CD pipeline

* fix(enabler): SessionId example usage

* Bump msw from 2.2.1 to 2.2.2 in /processor

Bumps [msw](https://github.com/mswjs/msw) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](mswjs/msw@v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Refactor abstract payment service

* Fix build failure

* Bump @commercetools-backend/loggers in /processor

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.18.0 to 22.19.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.20 to 20.11.24 in /processor

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.20 to 20.11.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @types/node from 20.11.20 to 20.11.24 in /enabler

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.20 to 20.11.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix unit test

* Update abstract-payment.service.ts

* Add function document to mock-payment service

* Bump @sinclair/typebox from 0.32.14 to 0.32.15 in /processor

Bumps [@sinclair/typebox](https://github.com/sinclairzx81/typebox) from 0.32.14 to 0.32.15.
- [Commits](sinclairzx81/typebox@0.32.14...0.32.15)

---
updated-dependencies:
- dependency-name: "@sinclair/typebox"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update typescript doc

* feat(payments): set the payment interface from the context

* chore(paypal-connector): rename instances of mock to paypal (#5)

* chore(paypal-connector): implement config endpoint

* feat(connector): implement status endpoint (#12)

* feat(connector): payment intents (#18)

* feat(connector): payment intents

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* pr feedback

* remove nock

* wip: save changes

* graceful error handling

* chore(deps-dev): bump @typescript-eslint/parser in /processor (#27)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @typescript-eslint/eslint-plugin in /processor (#25)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Merge changes from upstream (#28)

* Write unit test for getStatus

* Add unit test cases and sinon dependency for stub purpose

* Update operation.service.spec.ts

* Add unit test for cancel payment

* Refactor the mock data

* Remove skipped unit test

* Update operation.route.ts

* Avoid using sinon

* fix(connector): config type and details field (#49)

* Bump dotenv from 16.4.4 to 16.4.5 in /processor

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.4 to 16.4.5.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v16.4.4...v16.4.5)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Modify the configurations of required environment variables

* Update ci.yml

* Update ci.yml

* Update connect.yaml

* Remove unnecessary environment variable from CI/CD pipeline

* Bump @typescript-eslint/parser from 7.0.2 to 7.1.0 in /processor

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @commercetools/platform-sdk from 7.3.0 to 7.4.0 in /processor

Bumps [@commercetools/platform-sdk](https://github.com/commercetools/commercetools-typescript-sdks) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/commercetools/commercetools-typescript-sdks/releases)
- [Changelog](https://github.com/commercetools/commercetools-sdk-typescript/blob/master/changes.md)
- [Commits](https://github.com/commercetools/commercetools-typescript-sdks/compare/@commercetools/[email protected]...@commercetools/[email protected])

---
updated-dependencies:
- dependency-name: "@commercetools/platform-sdk"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(connector): payment intents (#18)

* feat(connector): payment intents

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* wip: save point

* pr feedback

* remove nock

* wip: save changes

* graceful error handling

* update healthcheck method

* fix tests

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: King-Hin Leung <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @commercetools-backend/loggers in /processor (#34)

Bumps [@commercetools-backend/loggers](https://github.com/commercetools/merchant-center-application-kit/tree/HEAD/packages-backend/loggers) from 22.18.0 to 22.19.0.
- [Release notes](https://github.com/commercetools/merchant-center-application-kit/releases)
- [Changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages-backend/loggers/CHANGELOG.md)
- [Commits](https://github.com/commercetools/merchant-center-application-kit/commits/@commercetools-backend/[email protected]/packages-backend/loggers)

---
updated-dependencies:
- dependency-name: "@commercetools-backend/loggers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(template): refactor operations to be included in abstract class (#35)

* feat(connectors): Implement notification endpoint (#38)

* feat(connectors): Implement notification endpoint

* fix notification schema

* fix notification schema 2

* improve error thrown

* update errors and test

* pr feedback

* chore(deps): bump fastify from 4.26.1 to 4.26.2 in /processor (#40)

Bumps [fastify](https://github.com/fastify/fastify) from 4.26.1 to 4.26.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](fastify/fastify@v4.26.1...v4.26.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix failing test

* tiny fixes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: King-Hin Leung <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: King-Hin Leung <[email protected]>
Co-authored-by: Juan J. Campos <[email protected]>
Co-authored-by: david sanchez ortiz <[email protected]>
Co-authored-by: dasanor <[email protected]>

* chore(connector): client abstractions should return exactly what is returned by paypal (#42)

* fix(jwt): processor to accept configuration

* format

* delete unuseds

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: King-Hin Leung <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: King-Hin Leung <[email protected]>
Co-authored-by: Juan J. Campos <[email protected]>
Co-authored-by: david sanchez ortiz <[email protected]>
Co-authored-by: dasanor <[email protected]>
Co-authored-by: PRAVEEN KUMAR VENKATESHAPPA <[email protected]>
Co-authored-by: praveenkumarct <[email protected]>
Co-authored-by: Prateek Srivastava <[email protected]>
Co-authored-by: Danilo Delizia <[email protected]>
  • Loading branch information
11 people authored Mar 15, 2024
1 parent b906fb3 commit 183ec33
Show file tree
Hide file tree
Showing 16 changed files with 209 additions and 332 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Install modules
run: npm ci

- name: Compile typescript
run: npm run build

- name: Execute tests
run: npm run test

Expand All @@ -42,5 +45,8 @@ jobs:
- name: Install modules
run: npm ci

- name: Compile typescript
run: npm run build

- name: Execute tests
run: npm run test
24 changes: 12 additions & 12 deletions enabler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions enabler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"serve": "14.2.1"
},
"devDependencies": {
"@types/node": "20.11.24",
"@types/node": "20.11.26",
"jest": "29.7.0",
"sass": "1.71.1",
"ts-jest": "^29.1.2",
"typescript": "5.3.3",
"vite": "5.1.4",
"typescript": "5.4.2",
"vite": "5.1.6",
"vite-plugin-css-injected-by-js": "3.4.0"
}
}
3 changes: 2 additions & 1 deletion enabler/src/components/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export abstract class BaseComponent implements PaymentComponent {
protected onComplete: (result: PaymentResult) => void;
protected onError: (error?: any) => void;

constructor(baseOptions: BaseOptions, componentOptions: ComponentOptions) {
constructor(paymentMethod: PaymentMethod, baseOptions: BaseOptions, componentOptions: ComponentOptions) {
this.paymentMethod = paymentMethod;
this.sdk = baseOptions.sdk;
this.processorUrl = baseOptions.processorUrl;
this.sessionId = baseOptions.sessionId;
Expand Down
5 changes: 2 additions & 3 deletions enabler/src/components/payment-methods/card/card.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentOptions } from '../../../payment-enabler/payment-enabler';
import { ComponentOptions, PaymentMethod } from '../../../payment-enabler/payment-enabler';
import buttonStyles from '../../../style/button.module.scss';
import inputFieldStyles from '../../../style/inputField.module.scss';
import styles from '../../../style/style.module.scss';
Expand All @@ -7,8 +7,7 @@ import { addFormFieldsEventListeners, fieldIds, getCardBrand, getInput, validate

export class Card extends BaseComponent {
constructor(baseOptions: BaseOptions, componentOptions: ComponentOptions) {
super(baseOptions, componentOptions);
this.paymentMethod = 'card';
super(PaymentMethod.card, baseOptions, componentOptions);
}

mount(selector: string) {
Expand Down
15 changes: 7 additions & 8 deletions enabler/src/payment-enabler/payment-enabler-paypal.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { BaseOptions } from '../components/base';
import { Card } from '../components/payment-methods/card/card';
import { FakeSdk } from '../fake-sdk';
import { ComponentOptions, EnablerOptions, PaymentEnabler, PaymentMethod } from './payment-enabler';

const SupportedMethods: PaymentMethod[] = ['card'];
import { ComponentOptions, EnablerOptions, PaymentEnabler } from './payment-enabler';

declare global {
interface ImportMeta {
Expand Down Expand Up @@ -47,11 +45,12 @@ export class PaypalPaymentEnabler implements PaymentEnabler {

async createComponent(type: string, componentOptions: ComponentOptions) {
const { baseOptions } = await this.setupData;

switch (type) {
case 'card':
return new Card(baseOptions, componentOptions);
const supportedMethods = {
card: Card,
}
if (!Object.keys(supportedMethods).includes(type)) {
throw new Error(`Component type not supported: ${type}. Supported types: ${Object.keys(supportedMethods).join(', ')}`);
}
throw new Error(`Payment method not supported: ${type}. Supported methods: ${Object.keys(SupportedMethods).join(', ')}`);
return new supportedMethods[type](baseOptions, componentOptions);
}
}
17 changes: 15 additions & 2 deletions enabler/src/payment-enabler/payment-enabler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,25 @@ export interface PaymentComponent {
export type EnablerOptions = {
processorUrl: string;
sessionId: string;
config?: { showPayButton?: boolean };
config?: {
locale?: string;
showPayButton?: boolean;
};
onActionRequired?: () => Promise<void>;
onComplete?: (result: PaymentResult) => void;
onError?: (error: any) => void;
};

export type PaymentMethod = 'card';

export enum PaymentMethod {
applepay = "applepay",
card = "card",
dropin = "dropin",
googlepay = "googlepay",
ideal = "ideal",
klarna = "klarna",
paypal = "paypal",
}

export type PaymentResult = {
isSuccess: true;
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 183ec33

Please sign in to comment.