# frozen_string_literal: true

# This file is generated. Do not edit.

require "structure"

module Peddler
  module Types
    module Reports20210630
      # Information required for the report document.
      ReportDocument = Structure.new do
        # @return [String] The identifier for the report document. This identifier is unique only in combination with a
        # seller ID.
        attribute(:report_document_id, String, from: "reportDocumentId")

        # @return [String] A presigned URL for the report document. If `compressionAlgorithm` is not returned, you can
        # download the report directly from this URL. This URL expires after 5 minutes.
        attribute(:url, String)

        # @return [String] If the report document contents have been compressed, the compression algorithm used is
        # returned in this property and you must decompress the report when you download. Otherwise, you can download
        # the report directly. Refer to [Step 2. Download the
        # report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-retrieve-a-report#step-2-download-the-report)
        # in the use case guide, where sample code is provided.
        attribute?(:compression_algorithm, String, from: "compressionAlgorithm")
      end
    end
  end
end
