Skip to content

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 changed the title Add discount enum item Add Discount Enum Item Jan 9, 2025
@armando-rodriguez-cko armando-rodriguez-cko merged commit efeecfd into master Jan 9, 2025
5 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/payment-context-add-discount-to-items-type branch January 9, 2025 17:19
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.

3 participants