Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Partners Resource to PHP-SDK #58

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

jonathanpmartins
Copy link
Contributor

This pull request introduces a new resource, Partners, to the PHP-SDK, expanding its functionality to include operations related to partner management. The goal is to align with OpenPix’s API capabilities and support use cases involving partner pre-registrations and applications.

Summary of Changes

  1. Partners Class Implementation:

    • Methods added:
      • list: List all partner pre-registrations.
      • getOne: Retrieve details of a specific partner by Tax ID.
      • create: Create new partner pre-registrations.
      • createApp: Create applications linked to pre-registrations.
    • Includes clear PHPDoc comments to ensure ease of understanding and integration.
  2. Unit Tests:

    • To ensure reliability and maintain SDK standards, the following unit tests have been added for the Partners resource:
      • testList: Verifies the correct API path and method for listing preregistrations.
      • testGetOne: Ensures fetching a specific preregistration works as expected.
      • testCreate: Tests the creation of a new preregistration.
      • testCreateApp: Validates the creation of a new application.

Motivation

This enhancement is designed to make the SDK more versatile, providing developers with tools to handle partner-related workflows seamlessly.

Copy link
Contributor

@edumaciel10 edumaciel10 left a comment

Choose a reason for hiding this comment

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

Very nice

@edumaciel10 edumaciel10 merged commit 5ca84b5 into woovibr:main Nov 29, 2024
7 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.

2 participants