-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMyTransactionDraft.php
More file actions
105 lines (83 loc) · 2.41 KB
/
Copy pathMyTransactionDraft.php
File metadata and controls
105 lines (83 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\Me;
use Commercetools\Api\Models\Common\Money;
use Commercetools\Api\Models\Type\CustomFieldsDraft;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
use DateTimeImmutable;
interface MyTransactionDraft extends JsonObject
{
public const FIELD_TIMESTAMP = 'timestamp';
public const FIELD_TYPE = 'type';
public const FIELD_AMOUNT = 'amount';
public const FIELD_INTERACTION_ID = 'interactionId';
public const FIELD_CUSTOM = 'custom';
public const FIELD_INTERFACE_ID = 'interfaceId';
/**
* <p>Date and time (UTC) the Transaction took place.</p>
*
* @return null|DateTimeImmutable
*/
public function getTimestamp();
/**
* <p>Type of the Transaction.
* Only <code>Authorization</code> or <code>Charge</code> is allowed.</p>
*
* @return null|string
*/
public function getType();
/**
* <p>Money value for the Transaction.</p>
*
* @return null|Money
*/
public function getAmount();
/**
* <p>Identifier used by the payment service that manages the Transaction.
* Can be used to correlate the Transaction to an interface interaction.</p>
*
* @return null|string
*/
public function getInteractionId();
/**
* <p>Custom Fields of the Transaction.</p>
*
* @return null|CustomFieldsDraft
*/
public function getCustom();
/**
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
*
* @return null|string
*/
public function getInterfaceId();
/**
* @param ?DateTimeImmutable $timestamp
*/
public function setTimestamp(?DateTimeImmutable $timestamp): void;
/**
* @param ?string $type
*/
public function setType(?string $type): void;
/**
* @param ?Money $amount
*/
public function setAmount(?Money $amount): void;
/**
* @param ?string $interactionId
*/
public function setInteractionId(?string $interactionId): void;
/**
* @param ?CustomFieldsDraft $custom
*/
public function setCustom(?CustomFieldsDraft $custom): void;
/**
* @param ?string $interfaceId
*/
public function setInterfaceId(?string $interfaceId): void;
}