README.md in paddle-2.2.1 vs README.md in paddle-2.3.0
- old
+ new
@@ -75,10 +75,18 @@
>[!NOTE]
>
> The Paddle API doesn't take `nil` values for optional parameters. If you want to remove a value, you'll need to pass `"null"` instead.
+### Updating records
+
+For API endpoints that support it, you can use the `update` method to update a record, like so:
+
+```ruby
+Paddle::Product.retrieve(id: "pro_abc123").update(name: "My New Name")
+```
+
### Products
```ruby
# List all products
# https://developer.paddle.com/api-reference/products/list-products
@@ -165,9 +173,10 @@
Paddle::Customer.list(status: "active")
Paddle::Customer.list(email: "me@mydomain.com")
# Create a customer
# https://developer.paddle.com/api-reference/customers/create-customer
+# Returns a Paddle::ConflictError if the email is already used on Paddle
Paddle::Customer.create(email: "myemail@mydomain.com", name: "Customer Name")
# Retrieve a customer
Paddle::Customer.retrieve(id: "ctm_abc123")