Skip to content

Conversation

@Kwok-he-Chu
Copy link
Member

@Kwok-he-Chu Kwok-he-Chu commented Jul 30, 2025

Updated new models in .NET library

Checkout API

New changes

  • Added additionalData, payments, and reference fields to SessionResultResponse
  • Added enhancedSchemeData to PaymentAmountUpdateRequest, PaymentCancelRequest, and PaymentRefundRequest
  • Introduced a promoted field in the PaymentMethod object, indicating if a payment method should be promoted.

Fix

  • Riverty Details: Added subtype-field to RivertyDetails

New Payment Methods:

  • Added payme and payme_pos to the list of PaymentDetails enum values

Other Updates and Improvements

  • 3D Secure 2 Authentication Flows: Clarified documentation for authenticationOnly and threeDSAuthenticationOnly parameters across multiple API requests, emphasizing their role in triggering the authentication-only flow.

  • Shopper Contact Information for 3D Secure 2:
    The following fields are now marked as required for Visa and JCB 3D Secure 2

    • shopperEmail marked is required, if telephoneNumber is not provided.
    • shopperIP is marked as required, if shopperEmail is not provided.
    • telephoneNumber is now marked required, if shopperEmail is not provided.
      We've updated the following classes to reflect this:BalanceCheckRequest, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, DonationPaymentRequest, PaymentLinkRequest, PaymentLinkResponse, PaymentMethodsRequest, and PaymentRequest.
  • The recommended maximum length for returnUrl in CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, DonationPaymentRequest, and PaymentRequest is now 1024 characters.

  • Updated the description of origin in DonationPaymentRequest and PaymentRequest specifying that it should be the origin URL of the page rendering the Drop-in/Component, without subdirectories or trailing slashes.

  • Updated description for addrMatch (3D Secure) in ThreeDS2RequestData and ThreeDS2RequestFields, dataOnly in ThreeDSRequestData (now explicitly for data-only flow), and nativeThreeDS in ThreeDSRequestData (clarifying potential fallback to redirect flow).

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @Kwok-he-Chu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on updating and expanding the data models within the .NET library, likely as part of an OpenAPI specification update. It introduces a new Payment model, enhances the SessionResultResponse with additional details, and refines existing models by removing deprecated or unnecessary fields and updating documentation.

Highlights

  • New Model Introduction: A new Payment model has been added to represent payment details, including amount, payment method, PSP reference, and result code.
  • Session Result Enhancement: The SessionResultResponse model has been extended to include AdditionalData, a list of Payments, and a Reference for more comprehensive session information.
  • Model Field Removals: The capturePspReference field has been removed from PaymentRefundRequest and the businessDayOnly field from PixRecurring, streamlining these models.
  • Documentation Refinements: Minor updates have been made to documentation comments in AdditionalDataSubMerchant, ResponseAdditionalDataCommon, and SubMerchantInfo for improved clarity.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates several models in the .NET library to align with recent Checkout API changes. This includes removing deprecated fields like capturePspReference and businessDayOnly, adding new fields to SessionResultResponse, and updating documentation. A new Payment model has also been added. The changes are generally correct and consistent with the description.

@Kwok-he-Chu Kwok-he-Chu changed the title Add new models to .NET library Add new Checkout models to .NET library Jul 30, 2025
@Kwok-he-Chu Kwok-he-Chu marked this pull request as ready for review July 30, 2025 12:33
@Kwok-he-Chu Kwok-he-Chu requested a review from a team as a code owner July 30, 2025 12:33
@Kwok-he-Chu Kwok-he-Chu merged commit 20f081f into main Jul 30, 2025
8 checks passed
@Kwok-he-Chu Kwok-he-Chu deleted the release-new-fields branch July 30, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants