commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
|
Public Member Functions | |
getCustomer () | |
getAnonymousId () | |
getInterfaceId () | |
getAmountPlanned () | |
getPaymentMethodInfo () | |
getPaymentStatus () | |
getTransactions () | |
getInterfaceInteractions () | |
getCustom () | |
getKey () | |
setCustomer (?CustomerResourceIdentifier $customer) | |
setAnonymousId (?string $anonymousId) | |
setInterfaceId (?string $interfaceId) | |
setAmountPlanned (?Money $amountPlanned) | |
setPaymentMethodInfo (?PaymentMethodInfo $paymentMethodInfo) | |
setPaymentStatus (?PaymentStatusDraft $paymentStatus) | |
setTransactions (?TransactionDraftCollection $transactions) | |
setInterfaceInteractions (?CustomFieldsDraftCollection $interfaceInteractions) | |
setCustom (?CustomFieldsDraft $custom) | |
setKey (?string $key) | |
Public Member Functions inherited from Commercetools\Base\JsonObject | |
get (string $field) | |
with (callable $callable=null) | |
Public Attributes | |
const | FIELD_CUSTOMER = 'customer' |
const | FIELD_ANONYMOUS_ID = 'anonymousId' |
const | FIELD_INTERFACE_ID = 'interfaceId' |
const | FIELD_AMOUNT_PLANNED = 'amountPlanned' |
const | FIELD_PAYMENT_METHOD_INFO = 'paymentMethodInfo' |
const | FIELD_PAYMENT_STATUS = 'paymentStatus' |
const | FIELD_TRANSACTIONS = 'transactions' |
const | FIELD_INTERFACE_INTERACTIONS = 'interfaceInteractions' |
const | FIELD_CUSTOM = 'custom' |
const | FIELD_KEY = 'key' |
Additional Inherited Members | |
Static Public Member Functions inherited from Commercetools\Base\JsonObject | |
static | of ($data=null) |
static | fromArray (array $data=[]) |
static | fromStdClass (stdClass $data=null) |
Definition at line 18 of file PaymentDraft.php.
Commercetools\Api\Models\Payment\PaymentDraft::getAmountPlanned | ( | ) |
Money value the Payment intends to receive from the customer. The value typically matches the Cart or Order gross total.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getAnonymousId | ( | ) |
Anonymous session associated with the Payment.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getCustom | ( | ) |
Custom Fields for the Payment.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getCustomer | ( | ) |
Reference to a Customer associated with the Payment.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getInterfaceId | ( | ) |
Identifier used by the payment service that processes the Payment (for example, a PSP). The combination of interfaceId
and the paymentInterface
field on PaymentMethodInfo must be unique. Once set, it cannot be changed.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getInterfaceInteractions | ( | ) |
Represents information exchange with the payment service, for example, a PSP. An interaction may be a request sent, or a response or notification received from the payment service.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getKey | ( | ) |
User-defined unique identifier for the Payment.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getPaymentMethodInfo | ( | ) |
Information regarding the payment interface (for example, a PSP), and the specific payment method used.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getPaymentStatus | ( | ) |
Current status of the Payment.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::getTransactions | ( | ) |
Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setAmountPlanned | ( | ?Money | $amountPlanned | ) |
?Money | $amountPlanned |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setAnonymousId | ( | ?string | $anonymousId | ) |
?string | $anonymousId |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setCustom | ( | ?CustomFieldsDraft | $custom | ) |
?CustomFieldsDraft | $custom |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setCustomer | ( | ?CustomerResourceIdentifier | $customer | ) |
?CustomerResourceIdentifier | $customer |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setInterfaceId | ( | ?string | $interfaceId | ) |
?string | $interfaceId |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setInterfaceInteractions | ( | ?CustomFieldsDraftCollection | $interfaceInteractions | ) |
?CustomFieldsDraftCollection | $interfaceInteractions |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setKey | ( | ?string | $key | ) |
?string | $key |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setPaymentMethodInfo | ( | ?PaymentMethodInfo | $paymentMethodInfo | ) |
?PaymentMethodInfo | $paymentMethodInfo |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setPaymentStatus | ( | ?PaymentStatusDraft | $paymentStatus | ) |
?PaymentStatusDraft | $paymentStatus |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
Commercetools\Api\Models\Payment\PaymentDraft::setTransactions | ( | ?TransactionDraftCollection | $transactions | ) |
?TransactionDraftCollection | $transactions |
Implemented in Commercetools\Api\Models\Payment\PaymentDraftModel.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_AMOUNT_PLANNED = 'amountPlanned' |
Definition at line 23 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_ANONYMOUS_ID = 'anonymousId' |
Definition at line 21 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_CUSTOM = 'custom' |
Definition at line 28 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_CUSTOMER = 'customer' |
Definition at line 20 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_INTERFACE_ID = 'interfaceId' |
Definition at line 22 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_INTERFACE_INTERACTIONS = 'interfaceInteractions' |
Definition at line 27 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_KEY = 'key' |
Definition at line 29 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_PAYMENT_METHOD_INFO = 'paymentMethodInfo' |
Definition at line 24 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_PAYMENT_STATUS = 'paymentStatus' |
Definition at line 25 of file PaymentDraft.php.
const Commercetools\Api\Models\Payment\PaymentDraft::FIELD_TRANSACTIONS = 'transactions' |
Definition at line 26 of file PaymentDraft.php.