nextdeveloper/agreement
最新稳定版本:v0.1.7
Composer 安装命令:
composer require nextdeveloper/agreement
包简介
NextDeveloper Generator Package
README 文档
README
This module is a part of the NextDeveloper project. It provides a way to create and manage agreements between the store owner and the customer.
Requirements
Installation
You can install the package via Composer:
composer require nextdeveloper/agreement
Database Tables
The package includes the following tables:
agreement_templatesagreement_contractsagreement_webhooks
Usage
Storing Agreement Templates
You can store agreement templates using the following example:
curl -X POST \ http://example.com/agreement/templates \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {token}' \ -d '{ "name": "Terms and Conditions", "description": "Terms and Conditions", "reference": "2ab1eefc-c585-4b80-9d85-ba9e5a1a45af" // This is the reference of the template in the external system }'
Storing Agreement Contracts
You can store agreement contracts using the following example:
curl -X POST \ http://example.com/agreement/contracts \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {token}' \ -d '{ "name": "Terms and Conditions", "description": "Terms and Conditions", "object_type": "NextDeveloper\\Partnerships\\Database\\Models\\Partnership", "object_id": 1, "template_reference": "2ab1eefc-c585-4b80-9d85-ba9e5a1a45af" }'
Storing Webhooks
You can store webhooks using the following example:
curl -X POST \ http://example.com/agreement/webhooks \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "source": "inspakt", "data": "{\"event\": \"agreement_created\", \"agreement_id\": 1}" }'
Commercial Support
Please let us know if you need any commercial support. We dont have such a business plan but we will be happy to help you on your project and/or applying this library in your project
Want to contribute?
You are very welcome to contribute of course. Please send us an email so that we can get in touch and talk about details; codewithus@nextdeveloper.com
统计信息
- 总下载量: 1.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-31