Skip to content

feat: add the Customers API and customerId fields - #16

Merged
jimmyn merged 1 commit into
masterfrom
feat/customers-api
Oct 2, 2026
Merged

jimmyn merged 1 commit into
masterfrom
feat/customers-api

Conversation

@jimmyn

@jimmyn jimmyn commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Regenerated from OpenAPI v1.12.3.

  • CustomersApi, exposed as monei.customers: create, get, update, delete, list_payment_methods, delete_payment_method
  • New models: Customer, CreateCustomerRequest, UpdateCustomerRequest, CustomerPaymentMethod, DeletedResource, ConflictError
  • customer_id and use_default_payment_method on CreatePaymentRequest; customer_id on Payment, Subscription, CreateSubscriptionRequest, UpdateSubscriptionRequest
  • README: Customer Operations section
  • test/test_customers.py: HTTP-layer tests for method, path and camelCase body (update, delete_payment_method, payment with the default method)

Summary by CodeRabbit

  • New Features
    • Added customer management capabilities, including creating, retrieving, updating, and deleting customers.
    • Added support for listing and removing a customer’s saved payment methods.
    • Added customer associations for payments and subscriptions, including use of a customer’s default saved payment method.
  • Documentation
    • Added guidance for customer operations and managing saved payment methods.
  • Tests
    • Added coverage for customer updates, payment-method removal, and payments using a customer’s default method.

@jimmyn
jimmyn merged commit 2cece11 into master Oct 2, 2026
8 of 9 checks passed
@jimmyn
jimmyn deleted the feat/customers-api branch October 2, 2026 12:13
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