Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 15, 2024
1 parent 1f7a76f commit 7a41616
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/sales-invoices/create-sales-invoice.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Mollie\Api\Types\PaymentTerm;
use Mollie\Api\Types\SalesInvoiceStatus;

/*
Expand All @@ -20,7 +21,7 @@
'status' => SalesInvoiceStatus::DRAFT,
'vatScheme' => 'standard',
'vatMode' => 'inclusive',
'paymentTerm' => '30 days',
'paymentTerm' => PaymentTerm::DAYS_30,
'recipientIdentifier' => 'XXXXX',
'recipient' => [
'type' => 'consumer',
Expand Down
20 changes: 20 additions & 0 deletions src/Types/PaymentTerm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace Mollie\Api\Types;

class PaymentTerm
{
const DAYS_7 = '7 days';

const DAYS_14 = '14 days';

const DAYS_30 = '30 days';

const DAYS_45 = '45 days';

const DAYS_60 = '60 days';

const DAYS_90 = '90 days';

const DAYS_120 = '120 days';
}

0 comments on commit 7a41616

Please sign in to comment.