Skip to content

Conversation

@david-ruiz-cko
Copy link
Contributor

This pull request introduces several new data models and expands existing classes to support enhanced payment processing features, particularly for accommodations, customer summaries, and payment instructions. It also adds detailed configuration options for payment sessions, including Apple Pay and Google Pay, and refines the airline and passenger data structures.

New Data Models and Expanded Payment Data:

  • Added new classes for accommodation-related data, including AccommodationData, AccommodationAddress, AccommodationGuest, and AccommodationRoom, enabling detailed hotel and guest information to be captured in payments. [1] [2] [3] [4]
  • Introduced CustomerSummary to store customer registration, transaction history, and value metrics, and integrated it into PaymentCustomerRequest. [1] [2]
  • Added PartnerCustomerRiskData for handling partner-specific risk information, referenced in ProcessingSettings. [1] [2]
  • Created PaymentInstruction and PaymentPurpose classes to specify and enumerate payment purposes for account funding transactions. [1] [2]

Enhancements to Payment Session Configuration:

  • Expanded PaymentMethodConfiguration to include new configuration options for Apple Pay, Google Pay, and stored cards, with corresponding new classes (ApplePay, GooglePay). [1] [2] [3]
  • Updated Card session configuration to support storing payment details and account holder data.
  • Added phone number support to Billing session configuration.

Refinements to Airline and Passenger Data:

  • Enhanced FlightLegDetails with additional fields (e.g., class_of_travelling, departure_time, arrival_airport) and improved documentation.
  • Refactored Passenger to use separate first_name, last_name, date_of_birth, and an address object, with a new PassengerAddress class for country codes. [1] [2]

Major Extension of Processing Settings:

  • Significantly expanded ProcessingSettings with new fields for discounts, shipping, taxes, invoice and receipt IDs, campaign and order information, airline and accommodation data, risk data, and more, with improved documentation for each property.

New data models and payment data:

  • Added AccommodationData, AccommodationAddress, AccommodationGuest, and AccommodationRoom classes to support detailed accommodation payment information. [1] [2] [3] [4]
  • Introduced CustomerSummary and integrated it into PaymentCustomerRequest for richer customer profiling. [1] [2]
  • Added PartnerCustomerRiskData class and its usage in ProcessingSettings for enhanced fraud detection. [1] [2]
  • Created PaymentInstruction and PaymentPurpose classes to capture and enumerate payment purposes. [1] [2]

Payment session configuration:

  • Expanded PaymentMethodConfiguration to support Apple Pay, Google Pay, and stored card configurations, with new classes for each. [1] [2] [3]
  • Updated Card and Billing session classes to include account holder and phone information. [1] [2]

Airline and passenger data enhancements:

  • Added fields and improved documentation in FlightLegDetails for more granular flight data.
  • Refactored Passenger to use individual name fields and a new PassengerAddress class. [1] [2]

Processing settings extension:

  • Major overhaul of ProcessingSettings to add support for discounts, taxes, shipping, campaign and order IDs, accommodation and airline data, risk data, and more, with comprehensive property documentation.

- Introduced AccommodationAddress, AccommodationData, AccommodationGuest, AccommodationRoom, and CustomerSummary classes to manage accommodation-related data.
- Enhanced FlightLegDetails class with additional properties for flight information.
- Added PartnerCustomerRiskData class for partner-specific risk data.
- Updated Passenger and PassengerAddress classes to include more detailed passenger information.
- Implemented PaymentCustomerRequest class with tax number and customer summary.
- Created PaymentInstruction and PaymentPurpose classes for payment processing.
- Revamped ProcessingSettings class to include new fields for payment processing.
- Developed PaymentSessionCompleteRequest and PaymentSessionSubmitRequest classes for handling payment session completion and submission.
- Added PaymentSessionsClient methods for completing and submitting payment sessions.
- Implemented tests for new payment session functionalities, including completion and submission.
- Introduced new session classes for ApplePay, GooglePay, and Billing with relevant properties.
@david-ruiz-cko david-ruiz-cko requested a review from a team November 17, 2025 10:54
Copy link
Contributor

@armando-rodriguez-cko armando-rodriguez-cko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 Good job

@david-ruiz-cko
Copy link
Contributor Author

Closed to revisit the files for a best organization

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@armando-rodriguez-cko armando-rodriguez-cko merged commit ad707b7 into master Nov 20, 2025
9 of 10 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/add-support-to-all-flow-endpoints branch November 20, 2025 10:14
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.

4 participants