Skip to content

AB#874466 checkout command builder#242

Draft
tuliorezende wants to merge 27 commits intomasterfrom
feature/874466-checkout-command-builder
Draft

AB#874466 checkout command builder#242
tuliorezende wants to merge 27 commits intomasterfrom
feature/874466-checkout-command-builder

Conversation

@tuliorezende
Copy link
Copy Markdown
Contributor

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:

  • CheckoutAction class: Implements the main logic for creating a checkout link and sending a payment message. It integrates with the ICheckoutExtension interface to generate the link and sends a message to the user with the link.

  • CheckoutExtension class: Provides the implementation for the ICheckoutExtension interface, which communicates with the builder to create a checkout link using a CheckoutDocument.

  • ICheckoutExtension interface: Defines the contract for creating a checkout link, ensuring a consistent API for the checkout process.

Data Models for Checkout:

  • CheckoutDocument class: Represents the structure of the checkout request, including customer details, product list, currency, channel, and source.

  • CustomerCheckout and ProductCheckout classes: Define the structure for customer and product data within the checkout process. These classes include fields like Identity, Phone, Description, Price, and Quantity. [1] [2]

Checkout Settings and Validation:

  • CheckoutSettings class: Provides configuration options for the checkout action, such as merchant, currency, and channel. Includes validation to ensure required fields are provided.

  • CustomerSettings and ProductSettings classes: Define and validate the settings for customer and product data. They ensure that fields like Identity, Phone, Description, and Price are correctly populated. [1] [2]

@cyber-sast
Copy link
Copy Markdown

cyber-sast commented Jun 24, 2025

Logo
Checkmarx One – Scan Summary & Detailsb565957e-a045-4954-a41f-99e78e4335f7

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

@tuliorezende tuliorezende changed the title Feature/874466 checkout command builder Feature/874466 checkout command builder AB#874466 Jul 4, 2025
@tuliorezende tuliorezende changed the title Feature/874466 checkout command builder AB#874466 AB#874466 checkout command builder Jul 4, 2025
@arturpeixot arturpeixot self-requested a review July 4, 2025 18:37
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.

3 participants