本文整理匯總了PHP中OrderItem::parseOrderItems方法的典型用法代碼示例。如果您正苦於以下問題:PHP OrderItem::parseOrderItems方法的具體用法?PHP OrderItem::parseOrderItems怎麽用?PHP OrderItem::parseOrderItems使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OrderItem
的用法示例。
在下文中一共展示了OrderItem::parseOrderItems方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($responseData)
{
$this->orderItems = OrderItem::parseOrderItems($responseData);
$this->receivers = Receiver::parseReceivers($responseData);
if (isset($responseData["token"])) {
$this->token = $responseData["token"];
}
if (isset($responseData["status"])) {
$this->status = $responseData["status"];
}
if (isset($responseData["invoiceStatus"])) {
$this->invoiceStatus = $responseData["invoiceStatus"];
}
if (isset($responseData["guaranteeStatus"])) {
$this->guaranteeStatus = $responseData["guaranteeStatus"];
}
if (isset($responseData["guaranteeDeadlineTimestamp"])) {
$this->guaranteeDeadlineTimestamp = $responseData["guaranteeDeadlineTimestamp"];
}
if (isset($responseData["shippingAddress.name"])) {
$this->shippingAddressName = $responseData["shippingAddress.name"];
}
if (isset($responseData["shippingAddress.streetAddress"])) {
$this->shippingAddressStreetAddress = $responseData["shippingAddress.streetAddress"];
}
if (isset($responseData["shippingAddress.postalCode"])) {
$this->shippingAddressPostalCode = $responseData["shippingAddress.postalCode"];
}
if (isset($responseData["shippingAddress.city"])) {
$this->shippingAddressCity = $responseData["shippingAddress.city"];
}
if (isset($responseData["shippingAddress.country"])) {
$this->shippingAddressCountry = $responseData["shippingAddress.country"];
}
if (isset($responseData["receiverFee"])) {
$this->receiverFee = $responseData["receiverFee"];
}
if (isset($responseData["type"])) {
$this->type = $responseData["type"];
}
if (isset($responseData["currencyCode"])) {
$this->currencyCode = $responseData["currencyCode"];
}
if (isset($responseData["custom"])) {
$this->custom = $responseData["custom"];
}
if (isset($responseData["trackingId"])) {
$this->trackingId = $responseData["trackingId"];
}
if (isset($responseData["correlationId"])) {
$this->correlationId = $responseData["correlationId"];
}
if (isset($responseData["purchaseId"])) {
$this->purchaseId = $responseData["purchaseId"];
}
if (isset($responseData["senderEmail"])) {
$this->senderEmail = $responseData["senderEmail"];
}
}
示例2: __construct
public function __construct($responseData)
{
$this->orderItems = OrderItem::parseOrderItems($responseData);
$this->receivers = Receiver::parseReceivers($responseData);
$this->token = $responseData["token"];
$this->status = $responseData["status"];
if (isset($responseData["invoiceStatus"])) {
$this->invoiceStatus = $responseData["invoiceStatus"];
}
if (isset($responseData["guaranteeStatus"])) {
$this->guaranteeStatus = $responseData["guaranteeStatus"];
}
if (isset($responseData["guaranteeDeadlineTimestamp"])) {
$this->guaranteeDeadlineTimestamp = $responseData["guaranteeDeadlineTimestamp"];
}
$this->type = $responseData["type"];
$this->currencyCode = $responseData["currencyCode"];
$this->custom = $responseData["custom"];
$this->trackingId = $responseData["trackingId"];
$this->correlationId = $responseData["correlationId"];
$this->purchaseId = $responseData["purchaseId"];
$this->senderEmail = $responseData["senderEmail"];
}