lib/paddle/models/customer.rb in paddle-2.1.1 vs lib/paddle/models/customer.rb in paddle-2.1.2
- old
+ new
@@ -22,9 +22,14 @@
def update(id:, **params)
response = Client.patch_request("customers/#{id}", body: params)
Customer.new(response.body["data"])
end
+ def credit(id:)
+ response = Client.get_request("customers/#{id}/credit-balances")
+ CreditBalance.new(response.body["data"][0])
+ end
+
end
end
end