Skip to content

Conversation

gcatanese
Copy link
Contributor

@gcatanese gcatanese commented Aug 21, 2025

This PR introduces the first implementation of the Cloud device API:

  • create new service to support 4 endpoints
    POST https://<Base-URL>/v1/merchants/{merchantAccount}/devices/{deviceId}/sync
    POSThttps://<Base-URL>/v1/merchants/{merchantAccount}/devices/{deviceId}/async
    GEThttps://<Base-URL>/v1/merchants/{merchantAccount}/devices/{deviceId}/status
    GEThttps://<Base-URL>/v1/merchants/{merchantAccount}/connectedDevices
  • update Config and Client to define Cloud device region-based endpoints
  • add support for encryption of request for /sync and async endpoints
  • add support for decryption of encrypted event notifications and async responses
  • add tests

@gcatanese
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR introduces the first implementation of the Cloud Device API, which is a significant and well-structured addition. The new service, configuration updates, and tests are comprehensive for a first iteration. I have identified a few areas for improvement, primarily concerning configuration consistency, code simplification for maintainability, and naming conventions in the new typings to enhance clarity.

@gcatanese gcatanese changed the title Cloud devices API - First iteration Cloud devices API Sep 11, 2025
@gcatanese gcatanese added the Feature New feature or request label Sep 11, 2025
@gcatanese gcatanese marked this pull request as ready for review September 12, 2025 08:55
@gcatanese gcatanese requested a review from a team as a code owner September 12, 2025 08:55
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant