commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Payment
PaymentDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Api\Models\Common\Money
;
12
use
Commercetools\Api\Models\Customer\CustomerResourceIdentifier
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Api\Models\Type\CustomFieldsDraftCollection
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
18
interface
PaymentDraft
extends
JsonObject
19
{
20
public
const
FIELD_CUSTOMER
=
'customer'
;
21
public
const
FIELD_ANONYMOUS_ID
=
'anonymousId'
;
22
public
const
FIELD_INTERFACE_ID
=
'interfaceId'
;
23
public
const
FIELD_AMOUNT_PLANNED
=
'amountPlanned'
;
24
public
const
FIELD_PAYMENT_METHOD_INFO
=
'paymentMethodInfo'
;
25
public
const
FIELD_PAYMENT_STATUS
=
'paymentStatus'
;
26
public
const
FIELD_TRANSACTIONS
=
'transactions'
;
27
public
const
FIELD_INTERFACE_INTERACTIONS
=
'interfaceInteractions'
;
28
public
const
FIELD_CUSTOM
=
'custom'
;
29
public
const
FIELD_KEY
=
'key'
;
30
37
public
function
getCustomer
();
38
45
public
function
getAnonymousId
();
46
55
public
function
getInterfaceId
();
56
64
public
function
getAmountPlanned
();
65
72
public
function
getPaymentMethodInfo
();
73
80
public
function
getPaymentStatus
();
81
88
public
function
getTransactions
();
89
96
public
function
getInterfaceInteractions
();
97
104
public
function
getCustom
();
105
112
public
function
getKey
();
113
117
public
function
setCustomer
(?
CustomerResourceIdentifier
$customer): void;
118
122
public
function
setAnonymousId
(?
string
$anonymousId): void;
123
127
public
function
setInterfaceId
(?
string
$interfaceId): void;
128
132
public
function
setAmountPlanned
(?
Money
$amountPlanned): void;
133
137
public
function
setPaymentMethodInfo
(?
PaymentMethodInfo
$paymentMethodInfo): void;
138
142
public
function
setPaymentStatus
(?
PaymentStatusDraft
$paymentStatus): void;
143
147
public
function
setTransactions
(?
TransactionDraftCollection
$transactions): void;
148
152
public
function
setInterfaceInteractions
(?
CustomFieldsDraftCollection
$interfaceInteractions): void;
153
157
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
158
162
public
function
setKey
(?
string
$key): void;
163
}
Commercetools\Api\Models\Payment\TransactionDraftCollection
Definition:
TransactionDraftCollection.php:22
Commercetools\Api\Models\Type\CustomFieldsDraftCollection
Definition:
CustomFieldsDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\Money
Definition:
Money.php:15
Commercetools\Api\Models\Customer\CustomerResourceIdentifier
Definition:
CustomerResourceIdentifier.php:16
Commercetools\Api\Models\Payment\PaymentDraft
Definition:
PaymentDraft.php:19
Commercetools\Api\Models\Payment\PaymentDraft\setPaymentStatus
setPaymentStatus(?PaymentStatusDraft $paymentStatus)
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_AMOUNT_PLANNED
const FIELD_AMOUNT_PLANNED
Definition:
PaymentDraft.php:23
Commercetools\Api\Models\Payment\PaymentDraft\getCustomer
getCustomer()
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_ANONYMOUS_ID
const FIELD_ANONYMOUS_ID
Definition:
PaymentDraft.php:21
Commercetools\Api\Models\Payment\PaymentDraft\getPaymentMethodInfo
getPaymentMethodInfo()
Commercetools\Api\Models\Payment\PaymentDraft\setAnonymousId
setAnonymousId(?string $anonymousId)
Commercetools\Api\Models\Payment\PaymentDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Payment\PaymentDraft\setInterfaceId
setInterfaceId(?string $interfaceId)
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_INTERFACE_INTERACTIONS
const FIELD_INTERFACE_INTERACTIONS
Definition:
PaymentDraft.php:27
Commercetools\Api\Models\Payment\PaymentDraft\getAnonymousId
getAnonymousId()
Commercetools\Api\Models\Payment\PaymentDraft\setCustomer
setCustomer(?CustomerResourceIdentifier $customer)
Commercetools\Api\Models\Payment\PaymentDraft\setPaymentMethodInfo
setPaymentMethodInfo(?PaymentMethodInfo $paymentMethodInfo)
Commercetools\Api\Models\Payment\PaymentDraft\setTransactions
setTransactions(?TransactionDraftCollection $transactions)
Commercetools\Api\Models\Payment\PaymentDraft\getInterfaceInteractions
getInterfaceInteractions()
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_INTERFACE_ID
const FIELD_INTERFACE_ID
Definition:
PaymentDraft.php:22
Commercetools\Api\Models\Payment\PaymentDraft\setAmountPlanned
setAmountPlanned(?Money $amountPlanned)
Commercetools\Api\Models\Payment\PaymentDraft\getKey
getKey()
Commercetools\Api\Models\Payment\PaymentDraft\getAmountPlanned
getAmountPlanned()
Commercetools\Api\Models\Payment\PaymentDraft\setInterfaceInteractions
setInterfaceInteractions(?CustomFieldsDraftCollection $interfaceInteractions)
Commercetools\Api\Models\Payment\PaymentDraft\getCustom
getCustom()
Commercetools\Api\Models\Payment\PaymentDraft\getPaymentStatus
getPaymentStatus()
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
PaymentDraft.php:28
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_KEY
const FIELD_KEY
Definition:
PaymentDraft.php:29
Commercetools\Api\Models\Payment\PaymentDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_PAYMENT_METHOD_INFO
const FIELD_PAYMENT_METHOD_INFO
Definition:
PaymentDraft.php:24
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
PaymentDraft.php:20
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_PAYMENT_STATUS
const FIELD_PAYMENT_STATUS
Definition:
PaymentDraft.php:25
Commercetools\Api\Models\Payment\PaymentDraft\getInterfaceId
getInterfaceId()
Commercetools\Api\Models\Payment\PaymentDraft\FIELD_TRANSACTIONS
const FIELD_TRANSACTIONS
Definition:
PaymentDraft.php:26
Commercetools\Api\Models\Payment\PaymentDraft\getTransactions
getTransactions()
Commercetools\Api\Models\Payment\PaymentMethodInfo
Definition:
PaymentMethodInfo.php:16
Commercetools\Api\Models\Payment\PaymentStatusDraft
Definition:
PaymentStatusDraft.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Payment
Definition:
Payment.php:9
Generated by
1.9.1