From 32063bd436597b7036389f2d7f72c03772fa7b0d Mon Sep 17 00:00:00 2001 From: Jeremy Denquin Date: Thu, 29 Feb 2024 18:16:02 +0100 Subject: [PATCH] fix(customers): Update is same as create --- lib/lago/api/resources/customer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/lago/api/resources/customer.rb b/lib/lago/api/resources/customer.rb index 4f4e8f4..f88e290 100644 --- a/lib/lago/api/resources/customer.rb +++ b/lib/lago/api/resources/customer.rb @@ -12,6 +12,10 @@ def root_name 'customer' end + def update(params, _identifier = nil) + create(params) + end + def current_usage(external_customer_id, external_subscription_id) uri = URI( "#{client.base_api_url}#{api_resource}/#{external_customer_id}" \