Skip to content

Checkout generate services and models#1218

Merged
gcatanese merged 4 commits intomainfrom
generate-checkout-jan-2026
Jan 6, 2026
Merged

Checkout generate services and models#1218
gcatanese merged 4 commits intomainfrom
generate-checkout-jan-2026

Conversation

@gcatanese
Copy link
Contributor

@gcatanese gcatanese commented Jan 6, 2026

This pull request generates the Checkout services and models

Checkout API

🛠 Breaking Changes

A new ShopperName class has been introduced to define the name of the shopper. This change affects the ShopperName property in the following classes: CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, DonationPaymentRequest, PaymentRequest

The property type has been updated from Name to ShopperName.

Change Overview:

// Previous Definition
public Name? ShopperName { get; set; }

// New Definition
public ShopperName? ShopperName { get; set; }

In PaymentDetails.cs remove enums upi_qr, Neteller, onlinebanking_IN, moneybookers


  • Added support for Checkout Forward endpoint
  • Added support for ExternalTokenDetails payment method
  • Added attribute paymentValidations in PaymentRequest.cs, PaymentResponse.cs
  • Added the SdkData property to all payment methods (i.e. AchDetails, etc..)
  • Added enum prepaid In ApplePayDonations.cs, CardDetails.cs, CardDonations.cs, VisaCheckoutDetails.cs
  • Added attribute billingSequenceNumber in CardDetails.cs, CardDonations.cs
  • Make attribute cardNumber optional in CardDetailsRequest.cs
  • Make attribute paymentMethod optional in DonationPaymentRequest.cs
  • Added attributes banckCode and branchCode in CheckoutBankTransferAction.cs, CheckoutBankTransferAction.cs
  • In GenericIssuerPaymentMethodDetails.cs add enum onlinebanking_IN
  • In PaymentDetails.cs add enums bankTransfer and iris
  • Added enum AMBER in ResponseAdditionalDataCommon.cs
  • In ResponseAdditionalDataSepa add sepadirectdebitSepadirectdebitDueDate attribute
  • Added ResponseAdditionalDataSwish class
  • Added attribute dueDate in SepaDirectDebitDetails.cs
  • Added attributes recurringDetailReference, storedPaymentMethodId in WeChatPayMiniProgramDetails.cs

Fix #1215

@gcatanese gcatanese requested review from a team as code owners January 6, 2026 10:50
@gemini-code-assist
Copy link

Summary of Changes

Hello @gcatanese, 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 significantly enhances the Checkout API by introducing the new Checkout Forward API for seamless integration with third-party tokenization services. It also expands the range of supported payment methods with ExternalTokenDetails and standardizes SDK data collection across various payment types. Additionally, several existing models have been refined with new attributes and improved descriptions to provide more comprehensive payment processing capabilities.

Highlights

  • Checkout Forward API: Added support for the new Checkout Forward API, including request and response models, and a test case.
  • ExternalTokenDetails Payment Method: Introduced a new payment method, ExternalTokenDetails, allowing for the use of tokens from external services.
  • SdkData Property: Integrated the 'SdkData' property across numerous payment method models (e.g., AchDetails, AffirmDetails, ApplePayDetails) to support SDK-related parameters.
  • New Enum Values: Added 'prepaid' enum to FundingSourceEnum in ApplePayDetails, CardDetails, CardDonations, GooglePayDetails, MasterpassDetails, SamsungPayDetails, and VisaCheckoutDetails.
  • Card Details Enhancements: Added 'billingSequenceNumber' to CardDetails and CardDonations, and made 'cardNumber' optional in CardDetailsRequest.
  • Bank Transfer Details: Included 'bankCode' and 'branchCode' attributes in CheckoutBankTransferAction for more granular bank transfer information.
  • Enhanced Scheme Data Models: Introduced new models like Destination, ItemDetailLine, and LevelTwoThree to support more detailed enhanced scheme data, and updated existing descriptions.
  • Recurring Contract Type: Added 'EXTERNAL' as a new contract type for recurring payments in the Recurring model.
  • Payment Validations: Introduced new models for payment validations, including PaymentValidations, PaymentValidationsNameRequest, PaymentValidationsNameResultRawResponse, and PaymentValidationsNameResultResponse.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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 introduces a significant number of changes, primarily related to generating new Checkout services and models. Key additions include support for the Checkout Forward API, the ExternalTokenDetails payment method, and the inclusion of an SdkData property across numerous payment method models. The changes appear to be largely auto-generated, following a consistent pattern. I've identified a couple of minor areas for improvement in the generated code to enhance maintainability and clarity.

@gcatanese gcatanese changed the title Generate checkout jan 2026 Checkout generate services and models Jan 6, 2026
@gcatanese gcatanese merged commit 774f18a into main Jan 6, 2026
4 checks passed
@gcatanese gcatanese deleted the generate-checkout-jan-2026 branch January 6, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Checkout.PaymentDetailsResponse is missing the "action" field

2 participants