本文整理汇总了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"];
}