Mangopay / mangopay2-ruby-sdk

Ruby Gem for MANGOPAY
https://rubygems.org/gems/mangopay
MIT License
42 stars 38 forks source link

Allow to fetch ubo declaration without user id #196

Closed mantaskujalis closed 3 years ago

mantaskujalis commented 3 years ago

Similar way as KYC document fetching works allowing to fetch ubo declaration without specifying user id, only by declaration id.

You can now do:

MangoPay::UboDeclaration.fetch(nil, ubo_declaration_id, nil)

When you don't have user_id, for example, when webhook about ubo_declaration was sent from MangoPay, where only ubo id is present, and client wants to fetch resource