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

Get Partner for ruby gem #155

Closed
lvonk opened this issue Dec 8, 2021 · 5 comments
Closed

Get Partner for ruby gem #155

lvonk opened this issue Dec 8, 2021 · 5 comments
Assignees
Milestone

Comments

@lvonk
Copy link

lvonk commented Dec 8, 2021

Hi,

I can't seem to find how to get https://docs.mollie.com/reference/v2/organizations-api/get-partner# Get Partner using this gem. Am I missing something or is it not (yet) implemented?

@justincase
Copy link
Collaborator

Hi @lvonk, you're correct. It hasn't been implemented yet.

@lvonk
Copy link
Author

lvonk commented Jan 13, 2022

Okay thanks. Is this on the roadmap in the foreseeable future?

@justincase
Copy link
Collaborator

Definitely! I plan on adding it to v4.11.0 which should be released in the next 3-4 weeks.

@justincase justincase self-assigned this Jan 13, 2022
@justincase justincase added this to the V4.11.0 milestone Jan 13, 2022
@justincase
Copy link
Collaborator

@lvonk The API has been added to the partner-api branch. If you have a moment, could you test it and tell me if it meets your requirements? Thanks!

Gemfile

gem 'mollie-api-ruby', github: 'mollie/mollie-api-ruby', branch: 'partner-api'

Usage

partner = Mollie::Partner.current

partner.type # => "signuplink"
partner.commission_partner? # => true
partner.user_agent_tokens[i].token # => "unique-token"
partner.user_agent_tokens[i].starts_at # => 2018-03-20 13:13:37 +0000
partner.user_agent_tokens[i].ends_at # => nil
partner.contract_signed_at # => 2018-03-20 13:13:37 +0000
partner.contract_update_available? # => nil
partner.signuplink # => "https://www.mollie.com/dashboard/signup/myCode?lang=en"

@justincase
Copy link
Collaborator

Released as v4.11.0

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

No branches or pull requests

2 participants