Draft
Conversation
|
Great job! No new security vulnerabilities introduced in this pull requestUse @Checkmarx to reach out to us for assistance. Just send a PR comment with Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request introduces a new "Checkout" feature to the system, enabling the creation of checkout links and the generation of payment messages. The implementation includes several new classes and interfaces for handling checkout settings, customer and product details, and the checkout process itself. Below is a summary of the most important changes:
Core Checkout Functionality:
CheckoutActionclass: Implements the main logic for creating a checkout link and sending a payment message. It integrates with theICheckoutExtensioninterface to generate the link and sends a message to the user with the link.CheckoutExtensionclass: Provides the implementation for theICheckoutExtensioninterface, which communicates with the builder to create a checkout link using aCheckoutDocument.ICheckoutExtensioninterface: Defines the contract for creating a checkout link, ensuring a consistent API for the checkout process.Data Models for Checkout:
CheckoutDocumentclass: Represents the structure of the checkout request, including customer details, product list, currency, channel, and source.CustomerCheckoutandProductCheckoutclasses: Define the structure for customer and product data within the checkout process. These classes include fields likeIdentity,Phone,Description,Price, andQuantity. [1] [2]Checkout Settings and Validation:
CheckoutSettingsclass: Provides configuration options for the checkout action, such as merchant, currency, and channel. Includes validation to ensure required fields are provided.CustomerSettingsandProductSettingsclasses: Define and validate the settings for customer and product data. They ensure that fields likeIdentity,Phone,Description, andPriceare correctly populated. [1] [2]