Skip to content

feat: add the Products, Prices and Tax rates APIs - #27

Merged
dnevzorov merged 2 commits into
masterfrom
feat/products-prices-tax-rates
Nov 16, 2026
Merged

dnevzorov merged 2 commits into
masterfrom
feat/products-prices-tax-rates

Conversation

@dnevzorov

@dnevzorov dnevzorov commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Regenerates the SDK from the live spec (1.13.0).

  • monei.products, monei.prices, monei.taxRates (create, get, list, update)
  • priceId on subscription create, update and preview; priceId, productId, tax on Subscription
  • README section and one test per new accessor

Note: CreateSubscriptionRequest.amount, currency and interval are now optional (priceId replaces them).

Spec source: https://github.com/MONEI/monei-openapi-schema/pull/176

Summary by CodeRabbit

  • New Features
    • Added API support for creating, retrieving, listing, and updating products, prices, and tax rates.
    • Added product and price listing with pagination.
    • Subscriptions can now be created or updated using a price, with associated billing and tax details.
    • Expanded documentation with examples for catalog management, recurring prices, and price-based subscriptions.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T16:01:39.661213Z
We couldn’t complete this review. Comment @codex review to try again.
e3f78eb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 88.72% 118 / 133
🔵 Statements 88.48% 123 / 139
🔵 Functions 85.18% 23 / 27
🔵 Branches 69.64% 78 / 112
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
index.ts 97.29% 91.48% 100% 97.14% 140, 174
src/api.ts 100% 100% 100% 100%
src/base.ts 72.72% 83.33% 50% 72.72% 75-76
src/common.ts 75% 49.09% 76.92% 76.19% 37-40, 67-68, 77-82, 96-101, 110, 125
src/configuration.ts 100% 75% 100% 100%
src/index.ts 100% 100% 100% 100%
src/model/index.ts 100% 100% 100% 100%
Unchanged Files
src/axios.ts 100% 100% 100% 100%
Generated in workflow #124 for commit 5906959 by the Vitest Coverage Report Action

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

  • Run on-demand review

This review includes 9 billable files and costs up to $2.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 1 minute for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 64 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 3e59e170-1720-4e9d-9266-b59334c1b9ce
Commits

Reviewing files that changed from the base of the PR and between e3f78eb and 5906959.

Files selected for processing: 9

  • src/model/create-price-request.ts
  • src/model/create-product-request.ts
  • src/model/create-tax-rate-request.ts
  • src/model/price.ts
  • src/model/product.ts
  • src/model/tax-rate.ts
  • src/model/update-price-request.ts
  • src/model/update-product-request.ts
  • src/model/update-tax-rate-request.ts

No actionable comments were generated in the recent review.

Walkthrough

The SDK adds product, price, and tax-rate models and API clients. It exposes these clients through Monei and adds README examples. Subscription request and response contracts now include price-related fields and tax details.

Changes: Product Catalog and subscriptions

Layer / File(s) Summary
Catalog models and subscription data contracts
src/model/*, src/model/index.ts, src/.openapi-generator/FILES
Adds product, price, and tax-rate request and response models, including list, recurring, and tax-detail types. Subscription models add price and tax fields.
Catalog API clients and SDK integration
src/api/{prices,products,tax-rates}-api.ts, src/api.ts, index.ts, tests/*-api.test.ts, README.md
Adds create, get, list, and update clients for prices, products, and tax rates. Monei exposes the clients. Tests cover resource retrieval, and the README adds catalog examples.
Price-based subscription contracts and documentation
src/model/{create-subscription-request,preview-subscription-update-request,update-subscription-request}.ts, src/api/subscriptions-api.ts
Adds optional priceId to subscription create, preview, and update contracts. API documentation describes price-based billing and subscription price changes.

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: Minimal · previous review e3f78

This PR adds the Products, Prices and Tax rates clients and price-based subscription fields in an additive way, following the SDK's existing generated-client conventions. No concrete merge-blocking problem remains after review.

Pre-merge checks: Passed 2

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: Some configured repositories could not be included in this review. Cross-repository analysis may be incomplete. Please check linked-repository access and settings.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 78673a52-8628-41ad-9393-ad0d103bd779
Commits

Reviewing files that changed from the base of the PR and between 4c935f8 and e3f78eb.

Files selected for processing: 143

  • README.md
  • index.ts
  • src/.openapi-generator/FILES
  • src/api.ts
  • src/api/apple-pay-certificate-api.ts
  • src/api/apple-pay-domain-api.ts
  • src/api/bizum-api.ts
  • src/api/customers-api.ts
  • src/api/payment-methods-api.ts
  • src/api/payments-api.ts
  • src/api/posauth-token-api.ts
  • src/api/prices-api.ts
  • src/api/products-api.ts
  • src/api/subscriptions-api.ts
  • src/api/tax-rates-api.ts
  • src/base.ts
  • src/common.ts
  • src/configuration.ts
  • src/index.ts
  • src/model/activate-apple-pay-certificate-request.ts
  • src/model/activate-subscription-request.ts
  • src/model/address.ts
  • src/model/api-exception.ts
  • src/model/apple-pay-certificate.ts
  • src/model/apple-pay-certificates-remove200-response.ts
  • src/model/bad-request-error.ts
  • src/model/bizum-validate-phone200-response.ts
  • src/model/cancel-payment-request.ts
  • src/model/cancel-subscription-request.ts
  • src/model/capture-payment-request.ts
  • src/model/confirm-payment-request-payment-method-card.ts
  • src/model/confirm-payment-request-payment-method.ts
  • src/model/confirm-payment-request.ts
  • src/model/conflict-error.ts
  • src/model/create-customer-request.ts
  • src/model/create-payment-request.ts
  • src/model/create-pos-auth-token-request.ts
  • src/model/create-price-request.ts
  • src/model/create-product-request.ts
  • src/model/create-subscription-request.ts
  • src/model/create-tax-rate-request.ts
  • src/model/customer-payment-method.ts
  • src/model/customer.ts
  • src/model/deleted-resource.ts
  • src/model/index.ts
  • src/model/internal-server-error.ts
  • src/model/not-found-error.ts
  • src/model/pause-subscription-request.ts
  • src/model/payment-billing-details.ts
  • src/model/payment-cancellation-reason.ts
  • src/model/payment-customer.ts
  • src/model/payment-last-refund-reason.ts
  • src/model/payment-message-channel.ts
  • src/model/payment-message-language.ts
  • src/model/payment-methods-metadata-alipay.ts
  • src/model/payment-methods-metadata-apple-pay.ts
  • src/model/payment-methods-metadata-bancontact.ts
  • src/model/payment-methods-metadata-bizum.ts
  • src/model/payment-methods-metadata-blik.ts
  • src/model/payment-methods-metadata-card.ts
  • src/model/payment-methods-metadata-click-to-pay-discover.ts
  • src/model/payment-methods-metadata-click-to-pay-mastercard.ts
  • src/model/payment-methods-metadata-click-to-pay-visa.ts
  • src/model/payment-methods-metadata-click-to-pay.ts
  • src/model/payment-methods-metadata-eps.ts
  • src/model/payment-methods-metadata-giropay.ts
  • src/model/payment-methods-metadata-google-pay.ts
  • src/model/payment-methods-metadata-ideal.ts
  • src/model/payment-methods-metadata-klarna.ts
  • src/model/payment-methods-metadata-mbway.ts
  • src/model/payment-methods-metadata-sepa.ts
  • src/model/payment-methods-metadata-sofort.ts
  • src/model/payment-methods-metadata-trustly.ts
  • src/model/payment-methods-metadata.ts
  • src/model/payment-methods-methods.ts
  • src/model/payment-methods.ts
  • src/model/payment-next-action.ts
  • src/model/payment-payment-method-bizum-input.ts
  • src/model/payment-payment-method-bizum.ts
  • src/model/payment-payment-method-card-input.ts
  • src/model/payment-payment-method-card.ts
  • src/model/payment-payment-method-input.ts
  • src/model/payment-payment-method-klarna.ts
  • src/model/payment-payment-method-mbway.ts
  • src/model/payment-payment-method-paypal.ts
  • src/model/payment-payment-method-sepa.ts
  • src/model/payment-payment-method-trustly.ts
  • src/model/payment-payment-method.ts
  • src/model/payment-payment-methods.ts
  • src/model/payment-refund-reason.ts
  • src/model/payment-sequence-recurring.ts
  • src/model/payment-sequence.ts
  • src/model/payment-session-details.ts
  • src/model/payment-shipping-details.ts
  • src/model/payment-shop.ts
  • src/model/payment-status.ts
  • src/model/payment-trace-details.ts
  • src/model/payment-transaction-type.ts
  • src/model/payment.ts
  • src/model/pos-auth-token-create200-response.ts
  • src/model/preview-subscription-update-request.ts
  • src/model/price-interval.ts
  • src/model/price-list.ts
  • src/model/price-recurring.ts
  • src/model/price.ts
  • src/model/product-images.ts
  • src/model/product-list.ts
  • src/model/product.ts
  • src/model/recurring-payment-request.ts
  • src/model/refund-payment-request.ts
  • src/model/register-apple-pay-domain-request.ts
  • src/model/send-payment-link-request.ts
  • src/model/send-payment-receipt-request.ts
  • src/model/send-payment-request-request.ts
  • src/model/send-subscription-link-request.ts
  • src/model/send-subscription-status-request.ts
  • src/model/service-unavailable-error.ts
  • src/model/subscription-interval.ts
  • src/model/subscription-last-payment.ts
  • src/model/subscription-last-proration.ts
  • src/model/subscription-payment-method-card.ts
  • src/model/subscription-payment-method.ts
  • src/model/subscription-payment-methods.ts
  • src/model/subscription-retry-schedule-inner.ts
  • src/model/subscription-retry-schedule.ts
  • src/model/subscription-status.ts
  • src/model/subscription-update-preview.ts
  • src/model/subscription.ts
  • src/model/tax-details.ts
  • src/model/tax-rate-list.ts
  • src/model/tax-rate.ts
  • src/model/unauthorized-error.ts
  • src/model/unprocessable-entity-error.ts
  • src/model/update-apple-pay-certificate-request.ts
  • src/model/update-customer-request.ts
  • src/model/update-price-request.ts
  • src/model/update-product-request.ts
  • src/model/update-subscription-request.ts
  • src/model/update-tax-rate-request.ts
  • src/model/validate-bizum-phone-request.ts
  • tests/prices-api.test.ts
  • tests/products-api.test.ts
  • tests/tax-rates-api.test.ts
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@dnevzorov dnevzorov left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Automatic review passed: no blocking issues found.

Feature


Generated by Claude Code

@dnevzorov dnevzorov left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Automatic review passed: no blocking issues found.

The new commit changes only doc comments on active.

Feature


Generated by Claude Code

@dnevzorov
dnevzorov merged commit 40d3ce3 into master Nov 16, 2026
5 checks passed
@dnevzorov
dnevzorov deleted the feat/products-prices-tax-rates branch November 16, 2026 17:01
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.

1 participant