Skip to content

Query api#49

Open
ahwm wants to merge 25 commits intomainfrom
query-api
Open

Query api#49
ahwm wants to merge 25 commits intomainfrom
query-api

Conversation

@ahwm
Copy link
Copy Markdown
Owner

@ahwm ahwm commented Jul 6, 2023

No description provided.

Repository owner deleted a comment from sonarqubecloud bot Oct 8, 2024
Copilot AI review requested due to automatic review settings October 21, 2025 19:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces asynchronous API methods across the payment gateway client library, converting synchronous operations to async/await patterns. The changes include adding query API functionality with XML deserialization support and updating all test cases to properly await async operations.

Key Changes:

  • Converted all public gateway methods from synchronous to asynchronous (*Async naming convention)
  • Added new Query API infrastructure with QueryResponse models and MakeQueryRequest method
  • Updated test methods to use async Task and properly await async operations
  • Removed duplicate OrderId property from CustomerSale class

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
PaymentGateway/GatewayClient.cs Core async conversion of MakeRequest method and addition of MakeQueryRequest for query API support
PaymentGateway/Payment.cs Converted payment operations (Sale, Authorize, Credit, Validate, Offline, Capture) to async
PaymentGateway/Recurring.cs Converted recurring billing operations to async
PaymentGateway/Invoices.cs Converted invoice operations to async
PaymentGateway/CustomerVault.cs Converted customer vault operations to async with ConfigureAwait(false)
PaymentGateway/Models/QueryResponse.cs New file defining XML response models for query API
PaymentGateway/Models/CustomerVault.cs Removed duplicate OrderId property
PaymentGatewayClient.Tests/CCPaymentTest.cs Updated credit card payment tests to async
PaymentGatewayClient.Tests/CheckPaymentTest.cs Updated check payment tests to async

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

ahwm and others added 2 commits October 22, 2025 11:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ahwm
Copy link
Copy Markdown
Owner Author

ahwm commented Feb 3, 2026

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Copy Markdown

Copilot AI commented Feb 3, 2026

@ahwm I've opened a new pull request, #115, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: ahwm <20478373+ahwm@users.noreply.github.com>
Add ConfigureAwait(false) to async methods in Payment, Recurring, and Invoices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants