当前位置: 首页>>代码示例>>PHP>>正文


PHP OrderItem::parseOrderItems方法代码示例

本文整理汇总了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"];
     }
 }
开发者ID:rigogadeac,项目名称:api-integration-php,代码行数:59,代码来源:paymentdetails.php

示例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"];
 }
开发者ID:krillo,项目名称:motiomera,代码行数:23,代码来源:paymentdetails.php


注:本文中的OrderItem::parseOrderItems方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。