recurly-client-ruby icon indicating copy to clipboard operation
recurly-client-ruby copied to clipboard

Update client library to support entitlements

Open lsfernandes92 opened this issue 3 years ago • 0 comments

This PR aims to:

  • Adds CustomerPermission, Entitlement and ExternalSubscription models.
  • Adds GET v2/accounts/{account_id}/entitlements endpoint to this client library.

Sample code request:

begin
  account = Recurly::Account.find('<ACCOUNT_CODE>')
  account.entitlements.find_each do |entitlement|
    puts "Entitlement: #{entitlement}"
  end
rescue Recurly::Error => e
  e.inspect
end

lsfernandes92 avatar Oct 13 '22 14:10 lsfernandes92