|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Inspirum\Balikobot\Model\PackageData\Package; |
|
6
|
|
|
|
|
7
|
|
|
use Inspirum\Balikobot\Definitions\Attribute; |
|
8
|
|
|
|
|
9
|
|
|
trait ForeignCountryDeliveryData |
|
10
|
|
|
{ |
|
11
|
1 |
|
public function setInvoiceNumber(string $invoiceNumber): void |
|
12
|
|
|
{ |
|
13
|
1 |
|
$this->offsetSet(Attribute::INVOICE_NUMBER, $invoiceNumber); |
|
|
|
|
|
|
14
|
|
|
} |
|
15
|
|
|
|
|
16
|
1 |
|
public function setGenerateInvoice(bool $value = true): void |
|
17
|
|
|
{ |
|
18
|
1 |
|
$this->offsetSet(Attribute::GENERATE_INVOICE, (int) $value); |
|
19
|
|
|
} |
|
20
|
|
|
|
|
21
|
1 |
|
public function setInvoicePDF(string $pdf): void |
|
22
|
|
|
{ |
|
23
|
1 |
|
$this->offsetSet(Attribute::INVOICE_PDF, $pdf); |
|
24
|
|
|
} |
|
25
|
|
|
|
|
26
|
1 |
|
public function setInvoiceType(string $type): void |
|
27
|
|
|
{ |
|
28
|
1 |
|
$this->offsetSet(Attribute::INVOICE_TYPE, $type); |
|
29
|
|
|
} |
|
30
|
|
|
|
|
31
|
1 |
|
public function setTermsOfTrade(string $terms): void |
|
32
|
|
|
{ |
|
33
|
1 |
|
$this->offsetSet(Attribute::TERMS_OF_TRADE, $terms); |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
1 |
|
public function setTermsOfTradeLocation(string $location): void |
|
37
|
|
|
{ |
|
38
|
1 |
|
$this->offsetSet(Attribute::TERMS_OF_TRADE_LOCATION, $location); |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @param array<string,mixed> $contentData |
|
43
|
|
|
*/ |
|
44
|
1 |
|
public function setContentData(array $contentData): void |
|
45
|
|
|
{ |
|
46
|
1 |
|
$this->offsetSet(Attribute::CONTENT_DATA, $contentData); |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
1 |
|
public function setContentType(string $contentType): void |
|
50
|
|
|
{ |
|
51
|
1 |
|
$this->offsetSet(Attribute::CONTENT_TYPE, $contentType); |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
1 |
|
public function setContentTypeDescription(string $description): void |
|
55
|
|
|
{ |
|
56
|
1 |
|
$this->offsetSet(Attribute::CONTENT_TYPE_DESCRIPTION, $description); |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
1 |
|
public function setContentPlaceOfCommital(string $place): void |
|
60
|
|
|
{ |
|
61
|
1 |
|
$this->offsetSet(Attribute::CONTENT_PLACE_OF_COMMITAL, $place); |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
1 |
|
public function setContentAdditionalFee(float $fee): void |
|
65
|
|
|
{ |
|
66
|
1 |
|
$this->offsetSet(Attribute::CONTENT_ADDITIONAL_FEE, $fee); |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
1 |
|
public function setContentProductCode(string $code): void |
|
70
|
|
|
{ |
|
71
|
1 |
|
$this->offsetSet(Attribute::CONTENT_PRODUCE_CODE, $code); |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
1 |
|
public function setIBAN(string $bankAccount): void |
|
75
|
|
|
{ |
|
76
|
1 |
|
$this->offsetSet(Attribute::IBAN, $bankAccount); |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
1 |
|
public function setSWIFT(string $bankAccount): void |
|
80
|
|
|
{ |
|
81
|
1 |
|
$this->offsetSet(Attribute::SWIFT, $bankAccount); |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
1 |
|
public function setNoteInvoice(string $note): void |
|
85
|
|
|
{ |
|
86
|
1 |
|
$this->offsetSet(Attribute::NOTE_INVOICE, $note); |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
1 |
|
public function setCustomIndicator(bool $value): void |
|
90
|
|
|
{ |
|
91
|
1 |
|
$this->offsetSet(Attribute::CUSTOMS_INDICATOR, (int) $value); |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
1 |
|
public function setCountryReference(string $value): void |
|
95
|
|
|
{ |
|
96
|
1 |
|
$this->offsetSet(Attribute::COUNTRY_REFERENCE, $value); |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
1 |
|
public function setCountryReferenceType(string $value): void |
|
100
|
|
|
{ |
|
101
|
1 |
|
$this->offsetSet(Attribute::COUNTRY_REFERENCE_TYPE, $value); |
|
102
|
|
|
} |
|
103
|
|
|
} |
|
104
|
|
|
|