Skip to content

Commit

Permalink
Merge pull request #20 from petrknap/tormit
Browse files Browse the repository at this point in the history
Added more keys for SPayD
  • Loading branch information
petrknap authored May 26, 2024
2 parents 6b9c28a + eee58aa commit 3059a78
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is the official list of authors for copyright purposes.

Petr Knap <8299754+petrknap@users.noreply.github.com>
Tormi Talv <tormi.talv@sportlyzer.com>
2 changes: 2 additions & 0 deletions src/SpaydBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

final class SpaydBuilder
{
# region https://qr-faktura.cz/
private const INVOICE_BUYER_IDENTIFICATION_NUMBER = 'INR';
private const INVOICE_BUYER_VAT_IDENTIFICATION_NUMBER = 'VIR';
private const INVOICE_FORMAT = 'SID';
Expand All @@ -21,6 +22,7 @@ final class SpaydBuilder
private const INVOICE_SELLER_IDENTIFICATION_NUMBER = 'INI';
private const INVOICE_SELLER_VAT_IDENTIFICATION_NUMBER = 'VII';
private const INVOICE_VERSION = '1.0';
# endregion

private function __construct(
private readonly Spayd $spayd,
Expand Down
12 changes: 11 additions & 1 deletion src/SpaydKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@

namespace PetrKnap\SpaydQr;

/**
* @see https://qr-platba.cz/pro-vyvojare/specifikace-formatu/
*/
enum SpaydKey: string
{
case AlternativeIban = 'ALT-ACC';
case Amount = 'AM';
case CurrencyCode = 'CC';
case DueDate = 'DT';
case Iban = 'ACC';
case Invoice = 'X-INV';
case Invoice = 'X-INV'; # https://qr-faktura.cz/
case Message = 'MSG';
case NotificationType = 'NT';
case PaymentType = 'PT';
case RecipientName = 'RN';
case Reference = 'RF';
case VariableSymbol = 'X-VS';
}

0 comments on commit 3059a78

Please sign in to comment.