commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Payment
Payment.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CentPrecisionMoney
;
13
use
Commercetools\Api\Models\Common\CreatedBy
;
14
use
Commercetools\Api\Models\Common\LastModifiedBy
;
15
use
Commercetools\Api\Models\Common\TypedMoney
;
16
use
Commercetools\Api\Models\Customer\CustomerReference
;
17
use
Commercetools\Api\Models\Type\CustomFields
;
18
use
Commercetools\Api\Models\Type\CustomFieldsCollection
;
19
use
Commercetools\Base\DateTimeImmutableCollection
;
20
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\Payment\TransactionCollection
Definition:
TransactionCollection.php:22
Commercetools\Api\Models\Type\CustomFieldsCollection
Definition:
CustomFieldsCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CentPrecisionMoney
Definition:
CentPrecisionMoney.php:15
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\TypedMoney
Definition:
TypedMoney.php:15
Commercetools\Api\Models\Customer\CustomerReference
Definition:
CustomerReference.php:16
Commercetools\Api\Models\Payment\Payment
Definition:
Payment.php:24
Commercetools\Api\Models\Payment\Payment\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Payment\Payment\getPaymentStatus
getPaymentStatus()
Commercetools\Api\Models\Payment\Payment\getPaymentMethodInfo
getPaymentMethodInfo()
Commercetools\Api\Models\Payment\Payment\FIELD_TRANSACTIONS
const FIELD_TRANSACTIONS
Definition:
Payment.php:33
Commercetools\Api\Models\Payment\Payment\setInterfaceId
setInterfaceId(?string $interfaceId)
Commercetools\Api\Models\Payment\Payment\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\Payment\Payment\getCustomer
getCustomer()
Commercetools\Api\Models\Payment\Payment\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
Payment.php:27
Commercetools\Api\Models\Payment\Payment\setCustomer
setCustomer(?CustomerReference $customer)
Commercetools\Api\Models\Payment\Payment\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
Payment.php:35
Commercetools\Api\Models\Payment\Payment\FIELD_KEY
const FIELD_KEY
Definition:
Payment.php:36
Commercetools\Api\Models\Payment\Payment\getId
getId()
Commercetools\Api\Models\Payment\Payment\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Payment\Payment\FIELD_INTERFACE_ID
const FIELD_INTERFACE_ID
Definition:
Payment.php:29
Commercetools\Api\Models\Payment\Payment\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Payment\Payment\setKey
setKey(?string $key)
Commercetools\Api\Models\Payment\Payment\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Payment\Payment\setId
setId(?string $id)
Commercetools\Api\Models\Payment\Payment\setAnonymousId
setAnonymousId(?string $anonymousId)
Commercetools\Api\Models\Payment\Payment\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Payment\Payment\setAmountPlanned
setAmountPlanned(?CentPrecisionMoney $amountPlanned)
Commercetools\Api\Models\Payment\Payment\FIELD_INTERFACE_INTERACTIONS
const FIELD_INTERFACE_INTERACTIONS
Definition:
Payment.php:34
Commercetools\Api\Models\Payment\Payment\getTransactions
getTransactions()
Commercetools\Api\Models\Payment\Payment\getAmountPlanned
getAmountPlanned()
Commercetools\Api\Models\Payment\Payment\getKey
getKey()
Commercetools\Api\Models\Payment\Payment\setPaymentStatus
setPaymentStatus(?PaymentStatus $paymentStatus)
Commercetools\Api\Models\Payment\Payment\getVersion
getVersion()
Commercetools\Api\Models\Payment\Payment\setInterfaceInteractions
setInterfaceInteractions(?CustomFieldsCollection $interfaceInteractions)
Commercetools\Api\Models\Payment\Payment\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Payment\Payment\getInterfaceInteractions
getInterfaceInteractions()
Commercetools\Api\Models\Payment\Payment\getInterfaceId
getInterfaceId()
Commercetools\Api\Models\Payment\Payment\FIELD_PAYMENT_STATUS
const FIELD_PAYMENT_STATUS
Definition:
Payment.php:32
Commercetools\Api\Models\Payment\Payment\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Payment\Payment\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Payment\Payment\FIELD_PAYMENT_METHOD_INFO
const FIELD_PAYMENT_METHOD_INFO
Definition:
Payment.php:31
Commercetools\Api\Models\Payment\Payment\setPaymentMethodInfo
setPaymentMethodInfo(?PaymentMethodInfo $paymentMethodInfo)
Commercetools\Api\Models\Payment\Payment\setTransactions
setTransactions(?TransactionCollection $transactions)
Commercetools\Api\Models\Payment\Payment\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Payment.php:26
Commercetools\Api\Models\Payment\Payment\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Payment\Payment\getAnonymousId
getAnonymousId()
Commercetools\Api\Models\Payment\Payment\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Payment.php:25
Commercetools\Api\Models\Payment\Payment\FIELD_ANONYMOUS_ID
const FIELD_ANONYMOUS_ID
Definition:
Payment.php:28
Commercetools\Api\Models\Payment\Payment\getCustom
getCustom()
Commercetools\Api\Models\Payment\Payment\FIELD_AMOUNT_PLANNED
const FIELD_AMOUNT_PLANNED
Definition:
Payment.php:30
Commercetools\Api\Models\Payment\PaymentMethodInfo
Definition:
PaymentMethodInfo.php:16
Commercetools\Api\Models\Payment\PaymentStatus
Definition:
PaymentStatus.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Payment
Definition:
Payment.php:9
Generated by
1.9.1