spryker/tax-app-vertex
最新稳定版本:0.1.0
Composer 安装命令:
composer require spryker/tax-app-vertex
包简介
TaxApp extension for Vertex app
README 文档
README
This is the example of project side integration with Spryker and ACP Vertex app. This code can be used as a starting point or for a demo.
If you want to add specific Vertex Codes for a specific products, etc., you have to add JSON file with path {projectRootDir}/data/import/vertex_codes.json with contents like this:
{
"customerCodes": {
"DE--1": "VC1",
"DE--2": "VC2",
"DE--3": "VC3"
},
"productCodes": {
"001_25904006": "VP1",
"002_25904004": "VP2",
"003_26138343": "VP3"
},
"productOptionCodes": {
"OP_1_year_warranty": "VP1",
"OP_2_year_warranty": "VP2",
"OP_3_year_warranty": "VP3",
"OP_insurance": "VP4"
},
"expenseCodes": {
"TYPE|NAME|MERCHANT_REFERENCE": "VE",
"TYPE1|NAME|MERCHANT_REFERENCE1": "VE1"
},
"exemptionsCertificates": {
"DE--1": "VES1",
"DE--2": "VES2",
"DE--3": "VES3"
}
}
In this case values which are specified in this file will override original default values in package. The logic will work in 2 ways:
- If you've provided custom mapping. For example you are specified
"DE--1": "VC1"in customerCodes section (which means customer with customer refereceDE--1should have vertex xodeVC1). If customer will be found in the cart or order it will be populated wuth this code. If not it will be populated with random Vertex Code you've provided. - If you've not provided cusomt mappins. It will work the same but will use internal mapping which you could find in
Spryker/Zed/TaxAppVertex/Communication/VertexCodeMapper.php.
统计信息
- 总下载量: 147.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-14