feat: new endpoint payment setups support #296
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This pull request introduces significant new functionality to support payment setups in the Checkout API, including the addition of new client classes, data models, and enhancements to existing payment and industry data structures. The main focus is on expanding the API's support for more complex payment setup scenarios, such as customer details, industry-specific data, and a variety of payment methods.
Key changes include:
Payment Setups Client Integration
PaymentSetupsClientto theCheckoutApi, including initialization, property, and a public getter method to provide access to payment setup operations. (lib/Checkout/CheckoutApi.php) [1] [2] [3] [4]New Data Models for Payment Setups
lib/Checkout/Payments/Setups/Common/, including models for customer details (Customer,Device,Email,MerchantAccount), order information (Order,OrderSubMerchant), industry-specific data (Industry,AirlineData), and payment methods (PaymentMethods,Klarna,Stcpay,Tabby,Bizum, and related option/action classes). These models support richer data capture for payment setups. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]Enhancements to Existing Payment and Industry Data
FlightLegDetailsclass to use aDateTimeobject for thedeparture_dateproperty, improving type safety and consistency for date handling. [1] [2]These changes collectively enhance the flexibility and capability of the Checkout API for handling advanced payment setup scenarios, industry-specific requirements, and a broader range of payment methods.