commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Payment.php
1 <?php
2 
3 declare(strict_types=1);
10 
21 use DateTimeImmutable;
22 
23 interface Payment extends BaseResource
24 {
25  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
26  public const FIELD_CREATED_BY = 'createdBy';
27  public const FIELD_CUSTOMER = 'customer';
28  public const FIELD_ANONYMOUS_ID = 'anonymousId';
29  public const FIELD_INTERFACE_ID = 'interfaceId';
30  public const FIELD_AMOUNT_PLANNED = 'amountPlanned';
31  public const FIELD_PAYMENT_METHOD_INFO = 'paymentMethodInfo';
32  public const FIELD_PAYMENT_STATUS = 'paymentStatus';
33  public const FIELD_TRANSACTIONS = 'transactions';
34  public const FIELD_INTERFACE_INTERACTIONS = 'interfaceInteractions';
35  public const FIELD_CUSTOM = 'custom';
36  public const FIELD_KEY = 'key';
37 
44  public function getId();
45 
52  public function getVersion();
53 
60  public function getCreatedAt();
61 
68  public function getLastModifiedAt();
69 
76  public function getLastModifiedBy();
77 
84  public function getCreatedBy();
85 
92  public function getCustomer();
93 
100  public function getAnonymousId();
101 
109  public function getInterfaceId();
110 
118  public function getAmountPlanned();
119 
126  public function getPaymentMethodInfo();
127 
134  public function getPaymentStatus();
135 
142  public function getTransactions();
143 
150  public function getInterfaceInteractions();
151 
158  public function getCustom();
159 
166  public function getKey();
167 
171  public function setId(?string $id): void;
172 
176  public function setVersion(?int $version): void;
177 
181  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
182 
186  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
187 
191  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
192 
196  public function setCreatedBy(?CreatedBy $createdBy): void;
197 
201  public function setCustomer(?CustomerReference $customer): void;
202 
206  public function setAnonymousId(?string $anonymousId): void;
207 
211  public function setInterfaceId(?string $interfaceId): void;
212 
216  public function setAmountPlanned(?CentPrecisionMoney $amountPlanned): void;
217 
221  public function setPaymentMethodInfo(?PaymentMethodInfo $paymentMethodInfo): void;
222 
226  public function setPaymentStatus(?PaymentStatus $paymentStatus): void;
227 
231  public function setTransactions(?TransactionCollection $transactions): void;
232 
236  public function setInterfaceInteractions(?CustomFieldsCollection $interfaceInteractions): void;
237 
241  public function setCustom(?CustomFields $custom): void;
242 
246  public function setKey(?string $key): void;
247 }
setCustomer(?CustomerReference $customer)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setAmountPlanned(?CentPrecisionMoney $amountPlanned)
setPaymentStatus(?PaymentStatus $paymentStatus)
setInterfaceInteractions(?CustomFieldsCollection $interfaceInteractions)
setPaymentMethodInfo(?PaymentMethodInfo $paymentMethodInfo)
setTransactions(?TransactionCollection $transactions)
setCreatedAt(?DateTimeImmutable $createdAt)