lib/recurly/client/operations.rb in recurly-3.12.0 vs lib/recurly/client/operations.rb in recurly-3.13.0
- old
+ new
@@ -3595,7 +3595,34 @@
#
def preview_purchase(body:, **options)
path = interpolate_path("/purchases/preview")
post(path, body, Requests::PurchaseCreate, **options)
end
+
+ # List the dates that have an available export to download.
+ #
+ # {https://developers.recurly.com/api/v2019-10-10#operation/get_export_dates get_export_dates api documenation}
+ #
+ # @param site_id [String] Site ID or subdomain. For ID no prefix is used e.g. +e28zov4fw0v2+. For subdomain use prefix +subdomain-+, e.g. +subdomain-recurly+.
+ #
+ # @return [Resources::ExportDates] Returns a list of dates.
+ #
+ def get_export_dates(**options)
+ path = interpolate_path("/export_dates")
+ get(path, **options)
+ end
+
+ # List of the export files that are available to download.
+ #
+ # {https://developers.recurly.com/api/v2019-10-10#operation/get_export_files get_export_files api documenation}
+ #
+ # @param export_date [String] Date for which to get a list of available automated export files. Date must be in YYYY-MM-DD format.
+ # @param site_id [String] Site ID or subdomain. For ID no prefix is used e.g. +e28zov4fw0v2+. For subdomain use prefix +subdomain-+, e.g. +subdomain-recurly+.
+ #
+ # @return [Resources::ExportFiles] Returns a list of export files to download.
+ #
+ def get_export_files(export_date:, **options)
+ path = interpolate_path("/export_dates/{export_date}/export_files", export_date: export_date)
+ get(path, **options)
+ end
end
end