Skip to content

Conversation

@mamunozcar
Copy link
Contributor

@mamunozcar mamunozcar commented Nov 7, 2025

Description

This PR add the resource PaymentLink with its corresponding manager.

Also, it adds the check-elegibility endpoint for the PaymentIntents resource

Dejo la documentación de ambos puntos:

Requirements

None.

Additional changes

It was necessary to modify the resource_update, because it did not allow custom routes, it only allowed routes with the defined ID.

@mamunozcar mamunozcar force-pushed the feat-add-payment-links-and-check-elegibility-endpoint branch 2 times, most recently from 0373dd5 to 7fb43e0 Compare November 7, 2025 19:03
@mamunozcar mamunozcar force-pushed the feat-add-payment-links-and-check-elegibility-endpoint branch from 7fb43e0 to 64187c6 Compare November 7, 2025 19:10
from fintoc.mixins import ResourceMixin


class PaymentLink(ResourceMixin):

Choose a reason for hiding this comment

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

Es necesario tener esto?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, esto es necesario bajo la arquitectura que se siguió para armar el sdk. Dejo una pequeña explicación de esta:

Ocurre que esta clase al final termina siendo el tipo de objeto con el que responde la api cuando por ejemplo se hace un client.payment_links, en donde esto respondería un objeto del tipo PaymentLink. Esto ocurre gracias a que nosotros dentro de PaymentLinksManager (fintoc/managers/payment_links_manager.py) definimos cual es el resource y con esto define el objeto que antes mencionaba.

Este proceso es seguido por todos los recursos creados dentro de este sdk por lo que estuve revisando al hacer la implementación

Choose a reason for hiding this comment

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

aaaaa buenisimo! gracias por explicarr

Copy link

@mari-hernandez mari-hernandez left a comment

Choose a reason for hiding this comment

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

lgtm!

@mamunozcar mamunozcar merged commit 6b45c43 into master Nov 10, 2025
5 checks passed
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