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

Update Product and Add Types in Payments #458

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

armando-rodriguez-cko
Copy link
Contributor

Description:

This PR updates the Product class and enhances the ProductType enumeration to introduce additional product types and improve handling of payment product details.


Key Changes:

Product.java Updates:

  • Added a new field:
    • ProductType type – Specifies the type of product (e.g., digital, physical, etc.).
  • Added new field annotations:
    • @SerializedName("service_ends_on") Instant serviceEndsOn – Specifies the service end date for applicable products.

ProductType.java Enhancements:

  • Introduced new product types:
    • DIGITAL – Representing digital products.
    • PHYSICAL – Representing physical goods.

Impact:

  • Improved Flexibility: Supports more diverse product types, ensuring compatibility with broader use cases like physical goods, digital items, and invoices.
  • Enhanced Serialization: Added annotations ensure accurate serialization for service-related fields.

Additional Notes:

  • Changes align with expanding requirements for payment handling in the Checkout.com SDK.
  • Backward compatibility maintained while extending product capabilities.

@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team December 17, 2024 09:04
@armando-rodriguez-cko armando-rodriguez-cko merged commit 42f1b63 into master Dec 17, 2024
4 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/update-product-in-payments branch December 17, 2024 10:10
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