<?php

/**
 * This file is auto-generated by Saloon SDK Generator
 * Generator: Crescat\SaloonSdkGenerator\Generators\DtoGenerator
 * Do not modify it directly.
 */

declare(strict_types=1);

namespace SellingPartnerApi\Vendor\InvoicesV1\Dto;

use SellingPartnerApi\Dto;

final class CreditNoteDetails extends Dto
{
    /**
     * @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  ?\DateTimeInterface  $goodsReturnDate  Defines a date and time according to <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a>.
     * @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 ?\DateTimeInterface $goodsReturnDate = null,
        public readonly ?string $rmaId = null,
        public readonly ?string $coopReferenceNumber = null,
        public readonly ?string $consignorsReferenceNumber = null,
    ) {}
}
