<?php

namespace SellingPartnerApi\Vendor\InvoicesV1\Dto;

use Crescat\SaloonSdkGenerator\BaseDto;

final class CreditNoteDetails extends BaseDto
{
    /**
     * @param  ?string  $referenceInvoiceNumber Original Invoice Number when sending a credit note relating to an existing invoice. One Invoice only to be processed per Credit Note. This is mandatory for AP Credit Notes.
     * @param  ?string  $debitNoteNumber Debit Note Number as generated by Amazon. Recommended for Returns and COOP Credit Notes.
     * @param  ?string  $returnsReferenceNumber Identifies the Returns Notice Number. Mandatory for all Returns Credit Notes.
     * @param  ?DateTime  $goodsReturnDate Defines a date and time according to ISO8601.
     * @param  ?string  $rmaId Identifies the Returned Merchandise Authorization ID, if generated.
     * @param  ?string  $coopReferenceNumber Identifies the COOP reference used for COOP agreement. Failure to provide the COOP reference number or the Debit Note number may lead to a rejection of the Credit Note.
     * @param  ?string  $consignorsReferenceNumber Identifies the consignor reference number (VRET number), if generated by Amazon.
     */
    public function __construct(
        public readonly ?string $referenceInvoiceNumber = null,
        public readonly ?string $debitNoteNumber = null,
        public readonly ?string $returnsReferenceNumber = null,
        public readonly ?\DateTime $goodsReturnDate = null,
        public readonly ?string $rmaId = null,
        public readonly ?string $coopReferenceNumber = null,
        public readonly ?string $consignorsReferenceNumber = null,
    ) {
    }
}
