Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Discount Enum Item #461

Conversation

armando-rodriguez-cko
Copy link
Contributor

Description:

This PR introduces a new item type, DISCOUNT, in the PaymentContextsItemsType enumeration to enhance payment context flexibility.


Key Changes:

PaymentContextsItemsType.java:

  • Added a new enum item:
    • DISCOUNT
      • Annotated with @SerializedName("discount") to support accurate serialization and integration.

Impact:

  • Improved Payment Context Handling: Enables representation of discounts directly within payment contexts, broadening the range of supported payment item types.
  • Seamless Integration: The @SerializedName ensures compatibility with existing APIs and serialization logic.

Additional Notes:

  • Backward compatibility is maintained, ensuring no disruption to existing workflows.
  • This change aligns with evolving needs for more granular payment item types in the Checkout.com SDK.

@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team January 9, 2025 10:11
@armando-rodriguez-cko armando-rodriguez-cko merged commit d7028e7 into master Jan 9, 2025
4 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/payment-context-add-discount-to-items-type branch January 9, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants