Skip to content

Conversation

@david-ruiz-cko
Copy link
Contributor

This release introduces a new payments/setups package to support Payment Setup operations, including creating, updating, retrieving, and confirming payment setups. It also integrates the new Payment Setups client into both the ABC and NAS API entry points and adds comprehensive unit tests for the new functionality. Additionally, it improves type safety in the payments domain and updates CI workflows to use newer GitHub Actions versions.

Payment Setups feature:

Added a new payments/setups package with a Client that supports creating, updating, retrieving, and confirming payment setups via the API. This includes methods for each operation, with appropriate authorization handling and documentation.
Added a dedicated test suite in payments/setups/client_test.go to cover all Payment Setups client methods, including authorization failures and success cases.

SDK API integration:

Registered the new PaymentSetups client in both the abc/checkout_api.go and nas/checkout_api.go API entry points, making payment setup functionality available in both API variants. [[1]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-36610c21195fe805c6a0161513ff9c2f2e89d024fcbe0a554b58ca3c4e637329R16) [[2]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-36610c21195fe805c6a0161513ff9c2f2e89d024fcbe0a554b58ca3c4e637329R31) [[3]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-36610c21195fe805c6a0161513ff9c2f2e89d024fcbe0a554b58ca3c4e637329R53) [[4]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-ccea7382f3297a1211705462e4c4999dc95a509717dba96d3e99a0e5d2f355f1R24) [[5]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-ccea7382f3297a1211705462e4c4999dc95a509717dba96d3e99a0e5d2f355f1R52) [[6]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-ccea7382f3297a1211705462e4c4999dc95a509717dba96d3e99a0e5d2f355f1R83)

Type safety improvements:

Updated the Ticket.IssueDate, Passenger.DateOfBirth, and Flight.DepartureDate fields in payments/payments.go from string to *time.Time to improve type safety and better represent date/time values. [[1]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-27713d6983bc85f6078d84b119f33d83ca6c3cda6ce906e87ddb931724e0d287L341-R341) [[2]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-27713d6983bc85f6078d84b119f33d83ca6c3cda6ce906e87ddb931724e0d287L351-R351) [[3]](https://github.com/checkout/checkout-sdk-go/pull/191/files#diff-27713d6983bc85f6078d84b119f33d83ca6c3cda6ce906e87ddb931724e0d287L360-R360)

CI/CD workflow updates:

Upgraded GitHub Actions versions for actions/checkout and actions/setup-go in all workflow files to use the latest major versions, improving security and compatibility.

@david-ruiz-cko david-ruiz-cko requested a review from a team December 16, 2025 13:57
@sonarqubecloud
Copy link

@david-ruiz-cko david-ruiz-cko changed the title Release 1.8.0 - New Payment Setups feature Release 1.8.0 - New Payments Setups feature Dec 16, 2025
@david-ruiz-cko david-ruiz-cko merged commit 26b77a5 into master Dec 17, 2025
4 checks passed
@david-ruiz-cko david-ruiz-cko deleted the release/1.8.0 branch December 17, 2025 09:15
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