diglin/sylius-advanced-api

添加 OroCRM 集成所需的其他信息。可用于其他用途

安装: 7

依赖项: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:sylius-plugin

1.0.2 2021-08-17 08:19 UTC

This package is auto-updated.

Last update: 2024-09-24 15:46:30 UTC


README

此 Sylius 扩展包必须与 OroCRM 集成一起使用,但是您也可以将其用于 Sylius 项目的其他用途。

此 Sylius 扩展包在通过 API 获取数据方面更为宽松,允许某些情况下有更好的性能表现。

例如,默认情况下,通过 GET /channels 获取渠道时,您不会获取到返回渠道列表所需的所有详细信息。此扩展包允许在获取此列表时获取更多数据。

如果您仍然希望限制获取某些数据,请保留以下实体属性,以便 OroCRM 正确工作

渠道

  • id (整数)

  • code (字符串)

  • name (字符串)

  • enabled (布尔值)

  • createdAt (日期时间)

  • updatedAt (日期时间)

客户

  • id (整数)

  • email (字符串)

  • firstName (字符串)

  • lastName (字符串)

  • gender (字符串)

  • group (数组)

  • phoneNumber (字符串)

  • subscribedToNewsletter boolean

  • createdAt (日期时间)

  • updatedAt (日期时间)

订单

  • id (整数)

  • items (数组)

  • itemsTotal (整数)

  • customer (数组)

  • payments (数组)

  • shipments (数组)

  • adjustments (数组)

  • adjustmentsTotal (整数)

  • total (整数)

  • shippingAddress (数组)

  • billingAddress (数组)

  • currencyCode (字符串)

  • number (字符串)

  • state (字符串)

  • checkoutCompletedAt (日期时间)

  • createdAt (日期时间)

  • updatedAt (日期时间)

  • channel (数组)

  • localeCode (字符串)

  • checkoutState (字符串)

订单项

  • id (整数)

  • quantity (整数)

  • unitPrice (整数)

  • total (整数)

  • unitsTotal (整数)

  • adjusmtents (数组)

  • adjusmtentsTotal (整数)

  • variant (数组)

  • createdAt (日期时间)

  • updatedAt (日期时间)

  • productName (字符串)

支付

  • id (整数)
  • amount (整数)
  • state (字符串)
  • method (数组)
  • currencyCode (字符串)

发货

  • id (整数)
  • state (字符串)
  • method (数组)

调整

  • id (整数)
  • type (字符串)
  • label (字符串)
  • amount (字符串)
  • tracking (字符串)

地址

  • id (整数)
  • firstName (字符串)
  • lastName (字符串)
  • phoneNumber (字符串)
  • countryCode (字符串)
  • street (字符串)
  • city (字符串)
  • postcode (字符串)

安装

composer require diglin/sylius-advanced-api:^1.0

配置

将以下内容添加到 config/packages/_sylius.yml

imports:
    ...
    - { resource: "@DiglinSyliusAdvancedApiPlugin/Resources/config/app/config.yml" }

然后使用以下命令清除 sylius 缓存:php bin/console -e prod cache:clear

已知问题

  • 如果您自行定制了 API,尤其是 Sylius 的核心 API,可能会出现冲突

许可证

查看 LICENSE.txt

作者