smart/3pl-central

0.1.8 2016-06-28 23:19 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:04:14 UTC


README

Build Status StyleCI Scrutinizer Code Quality Code Coverage Code Climate Latest Stable Version Total Downloads License SensioLabsInsight Join the chat at https://gitter.im/smart-io/php-3pl-central

这个库旨在将3PL Central API封装成一个简单易用的PHP库。请随时贡献。

目录

  1. 需求
  2. 安装
  3. 查找订单
  4. 许可证

需求

此库使用PHP 7.0+。

要使用3PL Central,您必须从3PL Central获取凭据。对于每个请求,您都必须提供ID、客户ID、设施ID以及您的3PL Central登录名和密码。

安装

建议您通过composer安装PHP 3PL Central库。要这样做,请运行Composer命令安装PHP 3PL Central的最新稳定版本。

composer require smart/3pl-central

查找订单

示例

use ThreePlCentral\ThreePlCentral;

$threepl = new ThreePlCentral($id, $customerId, $facilityId, $login, $password);
$threepl->findOrders((new DateTime())->modify('-30 days'), new DateTime());

参数

查找订单的参数有

  • beginDate Object(DateTime) 订单检索条件的开始日期时间。
  • endDate Object(DateTime) 订单检索条件的结束日期时间。

字段

CustomerName
CustomerEmail
CustomerPhone
Facility
FacilityID
WarehouseTransactionID
ReferenceNum
PONum
Retailer
ShipToCompanyName
ShipToName
ShipToEmail
ShipToPhone
ShipToAddress1
ShipToAddress2
ShipToCity
ShipToState
ShipToZip
ShipToCountry
ShipMethod
MarkForName
BatchOrderID
CreationDate
EarliestShipDate
ShipCancelDate
PickupDate
Carrier
BillingCode
TotWeight
TotCuFt
TotPackages
TotOrdQty
TotLines
Notes
OverAllocated
PickTicketPrintDate
ProcessDate
TrackingNumber
LoadNumber
BillOfLading
MasterBillOfLading
ASNSentDate
ConfirmASNSentDate
RememberRowInfo

许可证

PHP 3PL Central遵循MIT许可证(MIT)。