README.md in paddle-2.1.4 vs README.md in paddle-2.2.0

- old
+ new

@@ -5,11 +5,11 @@ ## Installation Add this line to your application's Gemfile: ```ruby -gem "paddle", "~> 2.1" +gem "paddle", "~> 2.2" ``` ## Billing API For accessing the new Billing API from Paddle. For more info, view the [Paddle Billing](https://www.paddle.com/billing) page. @@ -367,9 +367,33 @@ # List all logs for a notification # https://developer.paddle.com/api-reference/notifications/list-notification-logs Paddle::Notification.logs(id: "ntf_abc123") ``` +### Reports + +```ruby +# List all reports +Paddle::Report.list + +# Retrieve a report +Paddle::Report.retrieve(id: "rpt_abc123") + +# Get CSV download link for a report +# Returns a raw URL. This URL is not permanent and will expire. +# https://developer.paddle.com/api-reference/reports/get-report-csv +Paddle::Report.csv(id: "rpt_abc123") + +# Create a Report +# https://developer.paddle.com/api-reference/reports/create-report +Paddle::Report.create( + type: "transactions", + filters: [ + {name: "updated_at", operator: "lt", value: "2024-04-30"}, + {name: "updated_at", operator: "gte", value: "2024-04-01"} + ] +) +``` ## Classic API For accessing the Paddle Classic API